Bug 285802

Summary: kmail - no filters are applied on incomming messages
Product: [Frameworks and Libraries] Akonadi Reporter: Jakub Ladman <ladmanj>
Component: Mail Filter AgentAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adeptsmail, amantia, bugs, foss, pprkut, russ, sven.burmeister, trent2
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jakub Ladman 2011-11-05 10:05:26 UTC
Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

Every message received from pop3 server gets to the main "incomming" folder (i use czech localization, so i don't know the original english name) instead of their folders defined by filters.
When i select all the e-mails and run "apply all filters", they are succesfully filtered (and moved to their folders).

Reproducible: Always

Steps to Reproduce:
Do not know how on clean install, this commes few days ago, after some crashes, some remote X server accesses, some ubuntu updates...

Actual Results:  
Every message received from pop3 server gets to the main "incomming" folder  instead of their folders defined by filters.

Expected Results:  
Received e-mails should be automaticaly filtered as they arrive.

OS: Linux (x86_64) release 3.0.0-12-generic
Compiler: gcc
Comment 1 Robert Spillner 2012-01-01 19:33:49 UTC
I can confirm this bug with kmail-4.7.4
Comment 2 Heinz Wiesinger 2012-02-21 08:05:35 UTC
I can confirm this as well, still happens in 4.8.0
Comment 3 Anders Lund 2012-02-23 20:34:43 UTC
Related issue: I can get mails moved to their destination folders by filters, but whenever kmail updates the "inbox" folder, they are copied there again, so I had to turn it off.
Comment 4 Christian Reiner 2012-03-15 14:42:14 UTC
I confirm this bug for KDE-4.8 (openSUSE rpms). 
Manually apllying filters works fine in all aspects for me, but the filters are not applied automatically to incoming messages in an imap account, thought the option is checked. 

This problem is old, it has been said to be fixed again and again and again, yet it comes back again and again and again.
Comment 5 xmanmonk 2012-03-24 16:26:43 UTC
Can anyone say when this will be confirmed and fixed?
Comment 6 Graeme Hewson 2012-04-28 11:13:28 UTC
I confirm the bug in 4.8.2. I've also managed to get filtering working.

I have more than one POP3 account, and I was applying my filters to one or more selected accounts (in the Advanced tab). I don't have any IMAP accounts configured in kmail.

By selecting the "from all accounts" radio button (the default) instead, the filters are now  moving incoming mail into the folders I've assigned.
Comment 7 Graeme Hewson 2012-04-28 11:30:12 UTC
Duplicate of bug 283548?
Comment 8 Yuriy Vidineev 2012-08-21 06:47:18 UTC
Hello
I can confirm this bug with KDE 4.9 (kubuntu 12.04) and IMAP account (MS Exchange, SSL). I think that problem in kmail (or akonadi)  and MS Exchange communication because:

* Filters succesfully applies on another (gmail) IMAP accounts;
* After aconadictl restart i get this errors in konsole:
akonadi_imap_resource_7(7282)/kdepimlibs (kimap) KIMAP::StoreJob::handleResponse: We asked for UID but the server didn't give it back, resultingFlags not stored.
* In Filter Log Viewer i can't see anything evaluations before manually filter applying
Comment 9 Yuriy Vidineev 2012-08-21 08:58:45 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 S. Burmeister 2012-10-03 11:28:08 UTC
This bug only refers to POP3 accounts, correct?
Comment 11 Yuriy Vidineev 2012-10-03 21:00:54 UTC
I can confirm this bug on IMAP (MS EXchange, SSL) on KDE 4.9 (Kubuntu 12.04)
Comment 12 S. Burmeister 2012-10-03 22:36:20 UTC
Where are the filter logs? It's in the extras/tools menu.

Also, restart akonadi with akonadictl restart on a konsole and check its output.
Comment 13 Graeme Hewson 2012-10-07 09:53:30 UTC
Update to my comment 6: filtering works for me when the default "from all accounts" is selected only because filtering is only being applied to the Local Folders maildir account. I've opened bug 308008 for this.
Comment 14 Yuriy Vidineev 2012-10-10 01:33:51 UTC
After update to KDE 4.9.2 (on Ubuntu 12.10) and completely recreating Kontact settings this issue is fixed for me
Comment 15 András Manţia 2012-10-13 19:00:28 UTC
Please reopen the report if you can still see in 4.9.2 and Akonadi 1.8.1 (to be released tomorrow).
I tried both with POP3, IMAP (disconnected and online), with filters being enabled for all acounts or only for a few, but it works for me.