Filters get executed on special folders Sent and Drafts
Categories
(Thunderbird :: Filters, defect)
Tracking
(Not tracked)
People
(Reporter: pitrou, Unassigned, NeedInfo)
References
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Steps to reproduce:
I have set up filters on one of my accounts to move messages into specific folders depending on their To or CC fields. The intent was to filter incoming messages and dispatch them to recipient/group-specific folders.
Actual results:
In addition to filtering incoming messages, the filters also started automatically matching messages that I wrote and sent myself, after they were copied to the Draft or Sent folder. Those messages were therefore moved to the folders defined in the filters, which was definitely not the intent.
Expected results:
Special folders such as Draft or Sent (or Trash!) should be excluded by default from automatic filter execution.
Comment 1•1 year ago
•
|
||
Disagree with expected results for following reasons:
- Other users do have different use-cases than you have
- There is a workaround for what you are trying to achieve
- Do not limit Thunderbird by taking away something that works (mostly) fine and replace it with less functionality.
- Trying to do implement what you ask for requires to monitor folders other than the inbox. I WISH it were possible to execute filters on special folders like Sent and Drafts. People unfortunately have been waiting for ~ 20 years for this feature (which would be a nice to have!). Currently, filters are only executed on the inbox.
The workaround to your problem would be to have a filter that tags messages if sender and recipient is your own e-mail address and then to allow other filters not to execute on this tag. There are multiple ways to achieve this. Maybe creating a separate identity (account settings > Manage identities) for sending to yourself would achieve the same, but I have not tried this.
Also, I don't know what you are trying to achieve, but if you are trying to have mails in the same folder as your corresponding mail, then the "copy sent to current" addon would be worth having a look at.
If you manage to implement one of the workarounds, I would suggest to close this issue in order to reduce the amount of open issues.
Currently, filters are only executed on the inbox.
Are they? Because I'm complaining exactly about the reverse: filters are being executed not only on the inbox, but in special folders.
Comment 3•1 year ago
|
||
You send the messages to yourself, so what happens is that they land in your inbox, then the filters trigger.
The messages do NOT trigger on sent folder. I and multiple others tried that. I don't think the Supernova Release has changed anything in that regard.
Comment 4•1 year ago
|
||
although ... are you using the unified folder mode? There has been some rewrites of this functionality.
I am not sending messages to myself. I am sending them to an alias or mailing-list that I am part of, and filtering on the target address.
Ok, to make things clear, here is what happens:
- I send a message to foo@bar
- The sent message first gets copied into Sent
- I receive the message sent to foo@bar in my Inbox
- Both copies of the message (the one in Sent, the one in Inbox) get moved by the filter into a specific folder
Here is what I would like to happen:
- I send a message to foo@bar
- The sent message first gets copied into Sent
- I receive the message sent to foo@bar in my Inbox
- The filter moves the Inbox-received message into the specific folder, but doesn't touch the one that's in Sent
Comment 8•1 year ago
|
||
So you have
identity-1
identity-2
mailing-list-1
mailing-list-2
filters for identity-1
filters for identity-2
You send messages from identity-1 to identity-2, but which filters do trigger? The ones for identity-1 or the ones for identity-2?
I don't understand what you're talking about. Everything is happening under a single identity here (yes, I have several accounts, but only one is involved).
Reporter | ||
Comment 10•1 year ago
|
||
I should perhaps enable filter logging to give more precise data here (assuming the logs are actually precise enough :-)).
Comment 11•1 year ago
•
|
||
I apologize. I thought with Alias you mean a separate identity.
Reporter | ||
Comment 12•1 year ago
|
||
Ah, sorry for the confusion. I meant an e-mail alias in the "classical" sense of the term (a server-configured address that redirects to another one).
Comment 13•1 year ago
|
||
Thilo is right, folders only execute on the Inbox. So I have no idea what this bug report is about. Maybe you're confusing Thunderbird's filters with some server side filters?
Comment 14•8 months ago
|
||
(In reply to pitrou from comment #12)
Ah, sorry for the confusion. I meant an e-mail alias in the "classical" sense of the term (a server-configured address that redirects to another one).
So you are using server side filters?
Reporter | ||
Comment 15•7 months ago
|
||
No, I'm not using server-side filters. Again, this happens when I send an e-mail to a third party address "foo@bar" (such as a mailing-list) which then automatically forwards the message to my own address "antoine@pitrou" (because I'm part of the mailing-list recipients).
Description
•