Open Bug 267197 Opened 20 years ago Updated 10 months ago

Mail account as filter criterion

Categories

(MailNews Core :: Filters, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: the-pooh, Unassigned)

References

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 When defining filters to (e.g.) sort message into different folders it would be reasonable to have the opportunity to handle them by account. Especially if you don't use an own folder-tree per account but only the Local Folder with sub-folder for each account, that feature would be very helpful. BTW, this feature is available in Outlook Express. Reproducible: Always Steps to Reproduce: 1. Select Tools->Message Filters 2. Choose an account and select "new" 3. As you can see, in the "For incoming messages that match..." there is no "from account XY" option Actual Results: -- Expected Results: Offer a "filter-by-account" option
Severity: normal → enhancement
Component: General → Filters
OS: Windows XP → All
Product: Thunderbird → MailNews
Hardware: PC → All
Summary: A "filter-by-account" option when defining message filters is not available → Mail account as filter criterion
Version: unspecified → Trunk
Product: MailNews → Core
I found a method to create a filter for a specific account. Mozilla does add a private header named 'X-Account-Key' to every message, to identify the account. All you have to do is lookup the value which correspond to each account in your prefs.js file. The value should be something like 'accountx', where 'x' is a number. Now you can create the filter criteria: 'X-Account-Key' 'is' 'accountx'
I forgot to mention that my method does not work for IMAP accounts.
Hey, thanks a lot! I think that really works (I haven't receive enough mails yet to be absolutely sure about it). If there is an easy solution for imap accounts too, I suppose it won't be very hard to solve the issue (by simply add this criterion to the list of the defaults and give it a nicer name than x-account-key)...
That is a neat tip, and it will work well for mail in Local Folders *after* the mail has arrived. However, it's not useful for filtering mail as it arrives: filters on arriving mail are only applied to the account for which they're defined, and currently, the filters defined under Local Folders are not applied to mail arriving in the global Inbox.
Status: UNCONFIRMED → NEW
Ever confirmed: true
>the filters defined under Local Folders are not applied >to mail arriving in the global Inbox In trunk builds, they are, and have been for a couple months, so that includes 1.1a. Is that not your experience, Mike?
(In reply to comment #6) > >the filters defined under Local Folders are not applied > >to mail arriving in the global Inbox > > In trunk builds, they are, and have been for a couple months, so that includes > 1.1a. Is that not your experience, Mike? Oh! I'm sorry -- I was relying on memory. If I'd ever known about that fix, I'd forgotten it; but I don't have a deferred mailbox in my normal use.
*** Bug 336102 has been marked as a duplicate of this bug. ***
Assignee: mscott → nobody
QA Contact: filters
Product: Core → MailNews Core
Blocks: 378343
See Also: → 359260
Severity: normal → S3
See Also: → GlobalFilters
You need to log in before you can comment on or make changes to this bug.