UI to allow filters to automatically apply to ALL incoming messages other than inbox (in ANY folder including IMAP subfolders)

NEW
Unassigned

Status

Thunderbird
Mail Window Front End
--
enhancement
9 years ago
5 months ago

People

(Reporter: Andrey, Unassigned)

Tracking

(Depends on: 1 bug)

Trunk
x86
Windows XP
Dependency tree / graph
Bug Flags:
wanted-thunderbird3 ?

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Build Identifier: Mozilla Thunderbird version 2.0.0.12 (20080213)

Now Account filters are only automatically apply to Inbox folder (even without subfolders of Inbox in case of IMAP account).

I want to Thunderbird automatically apply filters to all incoming messages regardless in which folder (or subfolder in case of IMAP) a message will come.
In other words all folders which marked as "Check this folder for new messages" must be affected by Account filters for new messages that was detected in it.

I think it will be all messages that want to appears in "alert notification" but filters are work at first of all and if filter move/delete/... such message it not appears in "alert notification" of course.

Reproducible: Always

Steps to Reproduce:
1. Create IMAP account with some subfolder in Inbox ('test' for example)
2. Create some filter for this account ('mark all read', 'move all to trash' for example)
3. Let's server put any message to your 'test' folder
Actual Results:  
New unread message will be in 'test' subfolder, 'Inbox' folder is bold (marked as new message arrived), "alert notification" was showed.

Expected Results:  
New read message must be in 'trash' folder, 'Inbox' folder is normal (not changed), "alert notification" was not showed.

The "Bug 294632" is helpful too but it's not the same.
I want that already existing Account filters (one set of filters, not different filters for each folder) will apply to all incoming messages (not to some folders or subfolders) but for any folder in which new message is appears.

P.S. I'm sorry if something was wrong, I write to bugzilla at first time.
(Reporter)

Updated

9 years ago
Flags: wanted-thunderbird3?
Version: unspecified → Trunk
(Assignee)

Updated

9 years ago
Product: Core → MailNews Core
Component: General → MailNews: Filters
Product: Thunderbird → Core
QA Contact: general → filters
Whiteboard: dupem
Could be a dupe of bug #289208?
good call. let's make it dependent
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Depends on: 289208
Ever confirmed: true
Whiteboard: dupem

Comment 3

8 years ago
Bug 257415 "Add filtering for IMAP folders other than the INBOX" now provides the capability to override this behavior, though there is no UI for this (but I will provide one in an extension for TB3). It's an inherited folder property, which means that the request of this bug could be met by setting the string preference "mail.server.default.applyIncomingFilters" to "true".

So the backend exists. You need to decide whether this bug is now WFM, or is a request to 1) add UI for this, or 2) change the default behavior.

Updated

8 years ago
Component: Filters → Mail Window Front End
Product: MailNews Core → Thunderbird
QA Contact: filters → front-end
Summary: Filters must automatically apply to ALL incoming messages (in ANY folder including IMAP subfolders) → UI to allow filters to automatically apply to ALL incoming messages (in ANY folder including IMAP subfolders)
Depends on: 257415
Summary: UI to allow filters to automatically apply to ALL incoming messages (in ANY folder including IMAP subfolders) → UI to allow filters to automatically apply to ALL incoming messages other than inbox (in ANY folder including IMAP subfolders)
Duplicate of this bug: 515774

Comment 5

8 years ago
Does this actually require the config value to be a string?  From my reading of the code, that seems to be the case.

Comment 6

8 years ago
Yes, according to my testing this requires a string argument set equal to "true".  Which is an odd way to enable or disable a boolean feature.

Comment 7

8 years ago
Sorry, been ignoring this.

Yes true is string "true". This is an inherited string property, which only supports string. Not much different than DOM attributes though, which are also "true".

Comment 8

8 years ago
Ah, that explains the design decision.  Thanks!

Comment 9

8 years ago
Any workaround/extension is for TB2 can solve this problem?

Comment 10

8 years ago
(In reply to comment #9)
> Any workaround/extension is for TB2 can solve this problem?

The solution mentioned in comment 3 is a TB3-only solution. It would be theoretically possible for an extension to detect new messages and apply a filter to them in TB2, which would be a workaround of sorts, but I am not aware of any such solution.

Comment 11

4 years ago
Solution in comment3 still works in Thunderbird 17, but with one nuance ...

create a new string preference "mail.server.default.applyIncomingFilters" to "true". Even if it seems odd, do NOT create a boolean setting, it has to be a STRING setting with the value "true".

forum: http://forums.mozillazine.org/viewtopic.php?f=39&t=1444045&p=12768821#p12768821

Comment 12

4 years ago
Maybe it's a good time to implement this stuff. Since 2008 or even 2010 people have more and more mobile device. This is a reason for a lot of server-side filtering and sending things directly to folders instead of the inbox.

I have a lot of server-side filters but I need some filters for things that the server won't do, like adding tags to messages so I can color code them. Alright, this may be edge-case. But how hard it is to put a config somewhere or to make an extension that only set this flag on the config options?
Hmm, does this bug apply to my Feed accounts not firing filters automatically? By default all feed folder names are created from the feed title, which is pretty much never "Inbox". Not sure if renaming a feed folder "Inbox" would make filters fire. Going to have to test that later today.
(In reply to Leho Kraav (:macmaN @lkraav) from comment #13)
> Hmm, does this bug apply to my Feed accounts not firing filters
> automatically? By default all feed folder names are created from the feed
> title, which is pretty much never "Inbox". Not sure if renaming a feed
> folder "Inbox" would make filters fire. Going to have to test that later
> today.

I don't think so.
Duplicate of this bug: 595751
Duplicate of this bug: 806308
(In reply to Wayne Mery (:wsmwk) from comment #14)
> (In reply to Leho Kraav (:macmaN @lkraav) from comment #13)
> > Hmm, does this bug apply to my Feed accounts not firing filters
> > automatically? By default all feed folder names are created from the feed
> > title, which is pretty much never "Inbox". Not sure if renaming a feed
> > folder "Inbox" would make filters fire. Going to have to test that later
> > today.
> 
> I don't think so.

I can confirm that doing the mail.server.default.applyIncomingFilters trick made Feeds filtering also work as desired.
You need to log in before you can comment on or make changes to this bug.