Bug 276635 - In certain KMail2 setups filters dont get applied
Summary: In certain KMail2 setups filters dont get applied
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 4.10
Platform: openSUSE Linux
: NOR normal
Target Milestone: 4.10
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-27 20:39 UTC by Malte
Modified: 2013-02-28 08:32 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malte 2011-06-27 20:39:11 UTC
Version:           2.1.0 (using KDE 4.6.4) 
OS:                Linux

If you have the following setup, KMail2 (and KMail from older KDE 4.6.x tree as well!) does not apply filter rules: Have several POP3 accounts on your KMail2. Create an own inbox folder for each POP3 account, this user created inbox can be anywhere, but you must not use the default inbox folder. Now create a test filter, e.g. filter for subject line or sender. Now, when you fetch mail, the filter does not get applied.

Reproducible: Always

Steps to Reproduce:
Have several POP3 / email accounts. Create some subfolders. In KMail2 chose these subfolders as inbox folders for your POP3 accounts. Create an incoming filter, filter for e.g. subject, sender or List-Id. Set the filter to apply it for each of your POP3 email account and to apply it when fetching mails. Now fetch email with KMail2. You will see the filters do not get applied automatically. You still can run them individually and manually when you go to your user created inbox and apply the filter to each arrived message. This works, but automatic application of filters does not work if you use user created subfolders as your own inbox for POP3.

Actual Results:  
Filters do not get applied automatically.

Expected Results:  
KMail2 should apply filters automatically when fetching email, even if you use your own custom inbox folders for POP3 accounts.

This behaviour is not only seen in KMail2, but also with older KMail versions from KDE 4.6.x on my machine at least. I regard this serious, because filtering is a powerful and important tool for daily email usage.
Comment 1 Laurent Montel 2011-06-28 07:41:05 UTC
Fixed in 4.6/4.7/trunk.
Wait new package
Regards
Comment 2 Karsten Ehrlich 2011-09-10 10:58:45 UTC
I still experience this problem in KMail 4.7.1, but i am using IMAP accounts.
Comment 3 claydoh 2011-10-15 22:52:45 UTC
Still present in 4.7.2, using imap accounts
Comment 4 Robert Spillner 2011-12-17 09:53:43 UTC
This bug still occurs in kmail 4.7.4. Please don't mark it as fixed.
Comment 5 gramb 2012-01-26 18:40:51 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 Beat Wolf 2012-02-04 11:26:55 UTC
I have the exact same problem with kmail under kde 4.8
Comment 7 Tobias Koenig 2012-02-11 17:51:17 UTC
Hej,

please mix POP3 and IMAP in one bug report, these use slightly different code path for filtering when it comes to 'inboxes'.
So can somebody still reproduce the bug with _POP3_?
Comment 8 Beat Wolf 2012-02-11 17:57:36 UTC
Yes i had it with pop3 emails. Restarting the computer fixed it.
Comment 9 m.eik michalke 2012-03-18 11:52:31 UTC
(In reply to comment #7)
> So can somebody still reproduce the bug with _POP3_?

i *had* this problem (filters weren't applied) with a setup of two POP3 accunts and KDE 4.8. both accounts were configured to deliver mails to the default inbox. after i changed one of them to put fetched mails in another local folder, filtering suddenly worked again (i think i had to log out and back in again).
Comment 10 Chris Samuel 2012-09-17 11:29:41 UTC
Version: 4.9.1
Packaged:  Kubuntu PPA for 12.04
Package version: 4:4.9.1-0ubuntu1~ubuntu12.04.1~ppa2

I've just taken the plunge and upgraded from 11.04 through 11.10 to 12.04 and then to 4.9.1 in the PPA (last logged in 11.04, then logged in to 4.9.1 in 12.04, no intermediate logins).  I didn't use the migration tool but instead added my mixed Maildir/mbox folders which seems fine.

However, it appears that kmail2 filters (imported from the kmail1 kmailrc) do not seem to get applied to my IMAP folder (with disconnected mode enabled), looking at the filter log.  I do see log messages (and the filters get correctly applied) if I select all messages and apply the filters by hand to them.   But when an email appears that should be filtered it just sits in the IMAP inbox and does not get moved, and no log messages appear in the filter log.

Please let me know if you need any extra information!
Comment 11 András Manţia 2013-02-28 08:25:02 UTC
Fixed in KDE 4.10.1 and later by Wolfgang Rohdewald.
http://commits.kde.org/kdepim/185c572e079ef40bee2225e582c11dbdbb35840f