Closed Bug 271472 Opened 20 years ago Closed 20 years ago

local folder filter does not move messages on receiving

Categories

(MailNews Core :: Filters, defect)

1.7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 260373

People

(Reporter: ivan.icin, Assigned: mscott)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Mail filter does not move some messages on receiving. It is not always reproducable - one message from NYTimes was moved to the right folder, and soon after the other one was not moved. Running filters manually always work. To me it looks like that some filters have more or less chance to reproduce this (I can't remember having problems with some filters, while I have frequent problems with others) Reproducible: Sometimes Steps to Reproduce: 1. Create filter that moves message to subfolder of Local folders (I use 'if subject contains' rule) 2. Receive mail I think that Bug 268245 depends on this bug. Sometimes I get message 'Can't move to folder because the folder does not exist' (or something like that, I'll write it down if it appears again). Of course, folder exists. I am setting severity to major analogue to Bug 268245, extent of the problem is same.
I put version number in URL field, so I am correcting it now, here is the number: version 0.9 (20041103)
Well maybe you have misformulated the filter which you are processing on the Inbox.
No, let's be clear: I had two messages from the same e-mail address, filter is based on from field, one was processed, the other one was not. And as I said before, if I run filters manually they always work. But on receiving on messages they frequently fail.
(In reply to comment #0) POP3? or IMAP? What filter log says about the unfiltered/unmoved mails? Both should be checked. (a) When mail is received but not filtered, not moved. (b) When filtered/moved by manual filtering (You say it works always). ("Run Filter on folder"? or "Run Now" of message filter panel?) By the way, message filtering is common component of Thunderbird and Mozilla mail&news. So Product should be "Core"(Component=Mailnews: Filters)
(In reply to comment #4) > POP3? or IMAP? POP3 > What filter log says about the unfiltered/unmoved mails? My filter log was not enabled. I'll track this on and report here. > By the way, message filtering is common component of Thunderbird and Mozilla > mail&news. > So Product should be "Core"(Component=Mailnews: Filters) I did this analogue to Bug 268245, as Junk mail is also common component, even some people requested bug to be labeled in that way, but it was not done. It looks that categories are under some serious reorganization, so I think I'd better wait until reorganization finished (Asa mentioned in his blog new Core category, but there is no such thing now)
> Sometimes I get message 'Can't move to folder because the folder does not exist' > (or something like that, I'll write it down if it appears again). > Of course, folder exists. See all message filter rules refering to the folder. Is folder set correctly in message filter rule? (I don't say you failed to set correctly. If internal mail folder path name was ) ( changed accidentaly, by bug or some other reasons, this situation may occur.)
> but there is no such thing now Product=Core. *NOT* Product=Thundebird/Component=Core.
Here is the first example from my filter log. At first message was not moved (though it should be), and there was nothing about it in filter log. After that, I ran filter manually, and message was moved. Filter log changed to: Applied filter "cee" to message from PMR Publications <admin@polishmarket.com> - IT & Telecoms Headlines No. 24(31), 24 November 2004 at 2004-11-24 16:22:05 Action = Move to folder mailbox://nobody@Local%20Folders/Inbox/Newsletters/CEE id = 200411241522.iAOFM57H022987@polishmarket.com
"Run Filter on folder"? or "Run Now" of message filter panel? What rules does the filter(named "cee") contain? Paste filter definition(named "cee") in msgFilterRules.dat file for the account.
(In reply to comment #9) > "Run Filter on folder"? or "Run Now" of message filter panel? I used 'Run Now' from message filter folder. Now, I moved message manually to Inbox, and started 'Run Filters on folder' and the result is the same. > What rules does the filter(named "cee") contain? > Paste filter definition(named "cee") in msgFilterRules.dat file for the account. name="cee" enabled="yes" type="1" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Inbox/Newsletters/CEE" condition="OR (from,contains,ceemarket.com) OR (from,contains,polishmarket.com)"
Here is the data about filter that worked (at least in last case): name="SEO" enabled="yes" type="1" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Inbox/SEO" condition="OR (from,contains,@nl.internet.com) OR (from,contains,HighRankings-request@go.listdeliver.com) OR (from,contains,advisor@highrankings.com)" There are no trails about moving anything with it in Filter log.
(In reply to comment #8) > At first message was not moved (though it should be), and there was nothing > about it in filter log. Is the mail "newly downloaded" mail when you tested? Or already downloaded?
(In reply to comment #12) > Is the mail "newly downloaded" mail when you tested? Or already downloaded? The mail is newly downloaded. As it is just newsletter, I can upload its header here, or whole the message.
Oh, your folder is in "Local Folders". Do you enable Global Inbox? Do you have mutiple POP3 accounts and enable filters who move mails to same folder in "Local Folder"? If multiple accounts, what is your "Check messages every NN minutes" setting? (I use 7,11,13,17,19..., prime numbers, to avoid contention, even though not Global Inbox)
(In reply to comment #14) > Do you enable Global Inbox? Yes > Do you have mutiple POP3 accounts and enable filters who move mails to same > folder in "Local Folder"? No, just one account. *One more thing* I think that I have some filters that always work, some filters that never work (I submitted one from both groups in this thread) and some filters that sometimes work and sometimes not (at least I think it is like that), here is the example of it: name="NYTDirect@nytimes.com" enabled="yes" type="1" action="Move to folder" actionValue="mailbox://nobody@Local%20Folders/Inbox/Newsletters/NYTimes" condition="OR (from,is,NYTDirect@nytimes.com)"
Bug 168648 is an example of contention, although this is Inbox busy case due to receiving mail while batch run of filter. This can be applicable when folder busy due to compaction and so on, even when single account environment. Bug 202558 is "Case sensitive" prolem although this is "Begins With" and "Ends With" proeblem. "Case sensitive" problem even when "is"?
Component: General → MailNews: Filters
Product: Thunderbird → Core
Version: unspecified → 1.7 Branch
Does filter of name="NYTDirect@nytimes.com" work when "Run Filters on"? If fails, what happens when condition is changed to lower case, "OR (from,is,nytdirect@nytimes.com)".
"Run filters on folder" never failed for me, it is just problem that at receiving of messages some filters are not always (or are never) executed. I really think that it is very related to Bug 268245, as it sounds very similar - the only problem is that due to some problems message can't be automatically moved on receiving.
Bug 196732 Comment #57 is almost same as your situation, although it is move by Junk Filter case. (I think Bug 268245 is DUP of Bug 196732)
Bug 268245 / Bug 196732 are also frequently reproducable on my computer. As these bugs act similar like my NYTimes filter, I believe they are caused by the same reason. Anyway, I guess this bug is not duplicate, as I have some filters that (at least I think) always work and some that (I think) never work
bug 268245 comment #38 says that "deletion of panacea.dat" resolved the Junk filter problem. Are there any entries for old folder/file in panacea.dat? Is "deletion of panacea.dat" effective? Old folder file name information of renamed folder was kept in panacea.dat. Patch of bug 267345 comment #14 fixed this problem(by clearing when restart). This patch was checked in around 11/10(See bug 267345 comment #14). So if this is one of the causes and your build is still older than 11/09, "deletion of panacea.dat" can be a workaround of your next 2 problems. - Filter with name="NYTDirect@nytimes.com" always doesn't work - Sometimes get "Can't move to folder because the folder does not exist"
Another possibilities on your next case. - "Run filters on" always works but not when mail is received. Cause of this can be user's confusion due to not so good design. See bug 260373 comment #22 by David Bienvenu. Then check your message filter of both deffering account(your account, hidden at folder pane) and deffered account(Local Folders, Global Inbox).
Deleting of panacea.dat did not help in any way. Filters behave the same, and even junk mail is not always moved to junk folder. Comment #22 could be helpful, but I have to test it more, all I see is that I have both local and account filters, and it looks that those account filters work and those local do not (and they even might conflict). I downloded nightly build so now they are easily accessible in dialogue.
The filters in the local folders account do not run on incoming mail. That's by design, though I am going to change it eventually so that if you're using the global inbox, local folder filters will run after the incoming server filters.
If local folder filters are not run on mail receive, then it explains everything. However, as it is default behavior of TB to create filter from message as local folder filters if global inbox is enabled, then it is really confusing that this filters are not ran. That's why I think this bug should be opened, but as 'normal', not 'major'.
Severity: major → normal
Summary: filter does not move messages on receiving → local folder filter does not move messages on receiving
>as it is default behavior of TB to create filter from >message as local folder filters if global inbox is enabled That is not the default behaviour, in the latest builds. The filter is created for the incoming server.
(In reply to comment #25) > If local folder filters are not run on mail receive, then it explains > everything. > That's why I think this bug should be opened, but as 'normal', not 'major'. This is obviously DUP of bug 260373. But I'm not opossite to keep this bug open for other confused/will confuse users, until Thunderbird 1.0 will be released.
See Thunderbird FAQ. http://kb.mozillazine.org/index.phtml?title=Thunderbird_:_FAQs_:_Filters This is the best description we can get currently, I think.
(In reply to comment #28) > See Thunderbird FAQ. > http://kb.mozillazine.org/index.phtml?title=Thunderbird_:_FAQs_:_Filters > This is the best description we can get currently, I think. Thanks, I understood that from things David said here. Anyway, should one (advanced user) need to read filter description to create filters that work? David's promise that local folders filters won't be created by default if global inbox is enabled is promising, but I can say that it is not like that in 1.0 Release Candidate.
DUP close because Thunderbird 1.0 has been released. *** This bug has been marked as a duplicate of 260373 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.