Bug 256389 - Filters do not work with POP mai agent
Summary: Filters do not work with POP mai agent
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: filtering (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 19:24 UTC by Eugene Shalygin
Modified: 2011-07-06 20:32 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2010-11-08 19:24:26 UTC
Version:           unspecified (using Devel) 
OS:                Linux

I have filters that sort mail in several folders basing on To: field. The are in form "To" contains "something". These filters do not work when mail is fetched from POP3 server. It started somewhere around 2-3 weeks ago. Before that filters worked.



Reproducible: Always
Comment 1 Halla Rempt 2010-11-26 11:52:39 UTC
it's broken for me as well. Probably a duplicate of 255388, too.
Comment 2 Christian Trippe 2010-11-27 22:05:28 UTC
I can reproduce this with KDE 4.6 beta 1, if the filter is set to apply only for a selected (pop3) account. It works if the filter is set to apply for all accounts.
Comment 3 Christian Trippe 2010-11-29 21:18:58 UTC
Another configuration in addition to the one in comment 2 which makes filters for pop3 accounts work/not work is:
a) Have your account configured to have the 'target folder' as the standard inbox => filter also work for incoming mail
b) Have your account configured to have the 'target folder' as another folder  => filter do not work for incoming mail, only when applied manually
Comment 4 Tobias Koenig 2011-05-31 09:41:11 UTC
Hej,

after a quick look at the code I can confirm that automatic filtering won't work if the target folder in the POP3 resource is not the 'INBOX' folder.
Thanks for this valuable hint, I hope to find some time soon to fix it.

Ciao,
Tobias
Comment 5 Tobias Koenig 2011-06-02 13:39:12 UTC
I know the reason for the bug in comment #2 now as well. The filter manager checks if the filter shall be applied on the new messages inside the inbox folder. However the 'resource' of the new messages is the 'local folders' resource now and the resource configured in the filter config dialog is the pop3 resource. Therefor the mismatch.
Comment 6 Christian Boltz 2011-06-27 20:57:50 UTC
*** This bug has been confirmed by popular vote. ***
Comment 7 Laurent Montel 2011-07-06 20:32:56 UTC
Now filter works when we select a target != inbox.
So I think that we can close it