Closed Bug 584288 Opened 14 years ago Closed 8 years ago

Filters don't work all the time - some messages stay in Inbox

Categories

(MailNews Core :: Filters, defect)

1.9.2 Branch
x86
Windows Vista
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jdl, Unassigned)

Details

(Whiteboard: [filterfails])

User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)
Build Identifier: 3.1.1 and on....

I have filters set up in my mail account and since 3.1.1 this functionality is half broken. A couple of messages are moved to the folder designated by the filter but most stay in the inbox. When I click Apply filters to folder then the messages are moved after that but I do have to do that manually each time I receive mail now

Reproducible: Always

Steps to Reproduce:
1. Set up filters on multiple email accounts to one main account's inbox
2. Set up filters from the main account inbox to subfolders you want them to be
3. Get email and notice that not all filters are applied automatically
Actual Results:  
Get email and notice that not all filters are applied automatically, than apply filters to folder manually

Expected Results:  
At initial mail receice not all messages are moved to the correct folder. After manually pressing apply filers to folder they will.

Apply the filters to all the messages when the email is received from the server. In previous versions this was always the case.
This needs to be narrowed down from "not all filters" work to specific examples of filters that work and don't work. Also, is that behavior reproducible or intermittent?
are any filters on message body?
any recent changes to any filters?
No only From is and From contains and a couple of subject is and subject contains.

To my knowledge I changed nothing to the filters. The only thing I remember was changed was upgrading to the latest version of Thunderbird which was 3.1.1 and is now 3.1.2. I did notice however that newly added filters are now shown as From is: emailadress instead of Name (which I always named the filterpart of the filter). Also I noticed a new filter 'All messages' which I apply now from one of my accounts (info@...) to my main account (fastucom). I deleted all other filters in that account. That's about all latest changes I can think of now.
jdl, do you still see this problem when using current version?
Severity: minor → normal
Component: General → Filters
Product: Thunderbird → MailNews Core
QA Contact: general → filters
Summary: Filters don't work 100% any more → Filters don't work all the time - some messages stay in Inbox
Whiteboard: [closeme 2011-08-27]
Version: unspecified → 1.9.2 Branch
Well, I've removed all my filters in the mean time and created all new filters on the inbox so it would work again.
Actually, I noticed that the problem stil exists. Using TB 6.0 now.
Whiteboard: [closeme 2011-08-27]
Could you attach the file msgFilterRules.dat from you mail folder?
Do you have the filters in the correct order (as they should apply)? In the "msgFilterRules.dat 2 and 3" files you have "ALL move to Inbox" as the last rule. Is this also the order in which they appear in the UI (tools-> message filters?). Can you try moving it to the top?
No that is correct. I want all messages that not already have filters to be rerouted to my main Inbox instead of the Inboxes of those email addresses itself. So that is only applied for the messages that do not have a filter yet.
So which file contains the rules for the main Inbox/account?
The filters are already on "When Checking Mail (after classification) or Run manually" so this doesn't help.
(In reply to jdl from comment #0)
> Steps to Reproduce:
> 1. Set up filters on multiple email accounts to one main account's inbox

What is server type of the main account?
POP3 account? IMAP account? Or pseudo account of Local Folders"?

There is known problem like next;
  - If filter action such as "move to folder" somehow fails, it silently fails.
  - If contention on move target folder happens, move silently fails.
"Silently" in this context means:
  Filter log says "filter was applied", but "move to folder" was not executed.

If move target folder of filter action is Inbox of an active account, "download of mails to Inbox of the account by periodical new mail check" and "filter move by filter of other accounts to Inbox of the account" occurs at same time. It produces contention of the Inbox folder of the account. This may cause silent filter move failure.
Because manual "Run Filters on Folder" works well, and because your filter rule/action is simple(simple if condition with simple move to folder action only), your message filter looks written correctly and problem like "false positive or false negative of filter condition" doesn't look to happen in your case.
So, "silent failure due to Inbox busy" is suspected in your case. 

What is reason to move new mails of other accounts by filter to Inbox to which mails are frequently downloaded at same time?
What is you setting of "check new messages every NN minutes" of all accounts?
Do you see your problem with filter action of "move to non-busy folder of main account"? (e.g. move to Inbox2 of the main account)

FYI.
Contention of Inbox folder due to "intentional use of such busy Inbox as folder to save sent mail copy by user" is known. In this case, save to sent folder(==save to Inbox) frequently fails due to contention, then Retry/Cancel dialog for sent mail copy is frequently shown when mail is sent.
FYI.
Other example of problem due to contention of folder.
Junk move upon mail download sometimes fails if auto-compact is invoked on Junk folder at same time. Because "deletion of mails" usually happens on Inbox by filter move and junk move upon mail download, auto-compact is frequently invoked while downloading of mails than we think if small auto-compact threshold is specified by user and if "dialog before start of auto-compact" is killed by user.
If big Inbox, compact of Inbox takes long. So, this kind of auto-compact may interfere "move mails to the Inbox by message filter of other account" too.
The account is POP3.
I've adjusted the threshold for compacting folders from 1MB to 11MB now, perhaps that will make a difference.
In what log file can I verify that the filters where applied succesfully or not?
Do you get the error "aFolder is undefined" in Tools->Error console after the filters were run?
jdl ?
Whiteboard: [closeme 2012-02-29]
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INCOMPLETE
marked comments/attachments with email addresses as private for confidentiality
(i missed a couple of the comments)
The problem is still there in version 11.
I'm now moving the filters to the mail addresses the mail gets first into instead of first forwarding it to the main inbox and then filtering it again to my subfolders. That works, it is some more work though.
jdl?

(In reply to :aceman from comment #21)
> Do you get the error "aFolder is undefined" in Tools->Error console after
> the filters were run?
Status: RESOLVED → UNCONFIRMED
Resolution: INCOMPLETE → ---
Whiteboard: [closeme 2012-02-29]
Removing myslef on all the bugs I'm cced on. Please NI me if you need something on MailNews Core bugs from me.
we still need this piece of info

(In reply to Wayne Mery (:wsmwk, use Needinfo for questions) from comment #26)
> jdl?
> 
> (In reply to :aceman from comment #21)
> > Do you get the error "aFolder is undefined" in Tools->Error console after
> > the filters were run?
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.