FiltaQuilla
FiltaQuilla copied to clipboard
Enhancement: Apply Filter automatically to messages outside Inbox
I'm looking for a way to apply a filter action to messages as they are moved to a different folder. The standard "Apply filter when" unfortunately gives no option for a condition "when moved to folder".
A Workaround could be using "rerun every 10 minutes", used on the arrival folder. But that a) doesn't seem to work (I tested it: "manually run" works, "rerun every 10 minutes" doesn't) and b) seems like quite some wasted cpu power.
Do you think this would be an interesting idea and is possible to implement or do you have any other idea for the problem? Thanks!
It would be interesting, but we need some commitment from the Thunderbird Core developers to allow running filters automatically not just on the Inbox but on any folder. It's one of the architectural limitations of Thunderbird that all filters are stuck at the Inbox level at the moment, and that there is also no "global filter" mechanism.
It would be great to have a special list of "global filters" with the additional condition "folder X", but I think we need to ask the Thunderbird Core team to implement this on their side.
related bug in quickFilters:
https://github.com/RealRaven2000/quickFilters/issues/30
Interesting article by Kent James (original author of FiltaQuilla), from an archive:
https://web.archive.org/web/20191006143156/http://www.mesquilla.net/mesquillacom/2010/04/12/what-filters-need/
To put your links and your call for commitment by Thunderbird core developers into perspective:
Kent James rings a bell. When i was reading through Bugzilla a few months back, he seemed to have been one of the major filter experts, but is now inactive in that field. As far as i am aware, Thunderbird core (without extensions) has been stagnant in terms of filter development at least since ~ 5-7 years. So sad. It does not seem to be high on the priority list right now 😩 and if i look at this roadmap from 2010, it is sad to see that the interface for boolean logic has not been introduced, even though the underlying engine is able to do it since a whopping 12 years (!).
I know Wayne Mery (:wsmwk) and Magnus Melin [:mkmelin] regularly look at Bugzilla filter issues, but there is barely any work done to resolve these bugs. In 2021 alone, 7 filter issues + 2 mail news core issues related to filters were fixed and those were mostly regressions, not new features or enhancements and the years before that tell a similar story.
To my understanding, Thunderbird currently lacks the will, the expertise and workforce to tackle filter issues, because many filter developers are not active anymore. Not only that, there is technical debt. Many filter bugs stem from flaws in imap and pop3 protocoll or a wrong implementation of those standards (looking at you filter loop issue) also, which blocks quite a few features, so implementation of a more flexible new message transfer protocol would be pretty high on the agenda, but maybe that is a different topic and may not necessarily block the introduction of applying filters automatically to messages outside Inbox.
Long story short: a rework of the filter interface and filter engine behind it is long overdue.
To my understanding, Thunderbird currently lacks the will, the expertise and workforce to tackle filter issues, because many filter developers are not active anymore. Not only that, there is technical debt. Many filter bugs stem from flaws in imap and pop3 protocoll or a wrong implementation of those standards (looking at you filter loop issue) also, which blocks quite a few features, so implementation of a more flexible new message transfer protocol would be pretty high on the agenda, but maybe that is a different topic and may not necessarily block the introduction of applying filters automatically to messages outside Inbox.
Perfectly summarized - I highly recommend joining the Thunderbird Planning mail list and flagging it! You can also quote me as I regularly get requests for running filters outside of inbox and filters not working. Be aware though that there was a big framework for testing the filters introduced by @aceman (not sure if he has a github account) - he would probably be the best person to pull on board.
But I have a bade feeling that the wiki needs an update on the Thunderbird Core Team page, he is listed there but doesn't exist on mozillians.org.
Another good resource to try is the matrix chat of Thunderbird Developers. I am using the element chat client there and get good engagement on the Thunderbird Add-on Developers channel.
Also Thunderbird Support may be a good resource
I will see what i can do. I just fear i am not qualified enough to hold a conversation on a level and quality that would be required to tackle these issues. I am unable to point towards actual code and say: This is how we can change it. We need this, this and this, it will take this long and then it will be this good, as i lack a background in IT. I am mainly a user. I know how to read and i know some RegEx, but i am not sure that is enough.
The only thing i can say with confidence is: Here are some bug reports. This is a problem.
Maybe workaround? @Pilkja Could you report back, if it works for you?
I also needed to filter based on a folder other than the Inbox, you can use Tags for that. I assume you have filters to move messages from the Inbox to other folders, so you'll have to make another filter before that one to tag the message before the one that moves them (you can have as many tags as you wish i believe) and then another filter between the two that does what you want to messages tagged like that. The end result is that the 1st filter is exactly equal to the 3rd one, but the 1st one only tags while the 3rd one moves, and the 2nd filter does what you want based on messages tagged like that from the 1st filter. You will end with messages tagged in the end folder, which I don't know how to remove automatically, but this does work perfectly for me.
- taken from https://forums.mozillazine.org/viewtopic.php?f=39&t=2677919
https://github.com/Betterbird/thunderbird-patches/issues/35 will probably be another workaround, but that one is not implemented yet, as we are speaking.
For the record: A workaround is not the same as a real fix, but maybe a workaround is enough in some use cases 😉
@Pilkja Could you report back, if it works for you?
Unfortunately I am on the verge of leaving for Outlook because I need an interactivly working setup with task capabilities, email and note taking (i.e. Outlook and Onenote). I'm not investing any more time in Thunderbird. I'm sorry.
@Pilkja Could you report back, if it works for you?
Unfortunately I am on the verge of leaving for Outlook because I need an interactivly working setup with task capabilities, email and note taking (i.e. Outlook and Onenote). I'm not investing any more time in Thunderbird. I'm sorry.
That's already stuff like this happens all the time. :) I am leaving the issue open as the discussion might be valuable to some people. By the way there is great work being done on Betterbird now by their team they are finally working on "mixed filter conditions" with a similar UI as apple mail:
https://bugzilla.mozilla.org/show_bug.cgi?id=297852#c67
Ugly workaround:
Creaty "dummy account" that acts as intermediate inbox folder for specific filter rules.
This dummy account could be a:
- inbox of new e-mail account
- inbox of new local folder
- inbox of new feed (= roughly the same as a local folder)
Workflow:
- Receive mail in
inbox 1
- Run filters (X) on
inbox 1
- Filters (X) move or copy mails from
inbox 1
toDummy Inbox
- Filters (X) move or copy mails from
- Automatically and periodically run filters (Y) on
Dummy inbox