Bug 299589 - Some filters don't filter incoming messages automatically, only after manually applying all filters
Summary: Some filters don't filter incoming messages automatically, only after manuall...
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Mail Filter Agent (show other bugs)
Version: 4.8
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-07 21:07 UTC by Marcus Harrison
Modified: 2013-03-11 18:59 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Harrison 2012-05-07 21:07:27 UTC
Some filters - in particular those that check the List-Id element - don't filter automatically on incoming mail. Manually filtering the mail in your inbox after they have been downloaded results in the mail being correctly filtered.

This is with IMAP accounts, no other types of account were tested. 

Reproducible: Always

Steps to Reproduce:
1. Subscribe to a mailing list
2. Create a filter rule by right-clicking on a mailing-list message and clicking Create Filter --> Filter on Mailing List, or by creating one that checks the List-Id element manually, and make the filter e.g. add a tag to the messages, send them to a new folder or some other way to show that the message has been filtered
3. Wait on new messages from the mailing list
Actual Results:  
The messages from the mailing list e.g. remain in your inbox, remain untagged, or otherwise remain unaltered after the filter should have run

Expected Results:  
The messages are filtered and the correct changes are applied to them
Comment 1 Laurent Montel 2012-05-09 09:37:27 UTC
imap + filter doesn't work very well it's known.
Comment 2 Thomas Arend 2012-05-14 16:53:07 UTC
I can confirm this bug partly. On some messages the filter works and they are move to the right folder other messages stay in the incoming folder. 

Starting the filter by hand on selected messages works but only when not all messages are selected. 

Disregard my last: This work around worked until 4.8.2 but it does not work with 4.8.3
Comment 3 Christian Quast 2012-06-15 13:49:43 UTC
I know that this has been working in Kmail 1, even in Kmail 2 which came with KDE 4.7 I remember it to be working. At least, I cannot recall having this problem before my recent update from KDE 4.7 to 4.8.
Comment 4 PhobosK 2012-06-25 21:29:28 UTC
Does restarting Akonadi after you alter the filter/s work (you should exit kmail before you restart akonadi)?
Comment 5 Marcus Harrison 2012-06-26 11:28:47 UTC
In my experience, no, but I've only changed my filters once recently. In what ways do you mean altering the filters? Altering the filters that specifically don't work, or any old add/remove/edit?
Comment 6 PhobosK 2012-06-26 21:10:37 UTC
Altering any filters, no matter old or new.
Comment 7 András Manţia 2012-10-13 22:40:55 UTC
Can you check with KDE 4.9.2 and if possble, akonadi 1.8.1?
Comment 8 Marcus Harrison 2012-10-14 13:12:08 UTC
Testing on 4.9.2, appears to be fixed. Closing.
Comment 9 Thomas Arend 2012-10-14 22:10:57 UTC
I'm running 4.9.2!

And it is not fixed!
Comment 10 Marcus Harrison 2012-10-14 23:23:48 UTC
Re-opening in response to Comment 9.
Comment 11 Allen Winter 2012-10-25 19:52:18 UTC
but it also depends on the Akonadi server version.

What Akonadi server are you guys using?
Comment 12 Marcus Harrison 2012-10-25 21:33:15 UTC
I am using Akonadi version 1.8.0.
Comment 13 Thomas Arend 2012-10-26 01:19:43 UTC
This is what I have installed:

kdebase4-workspace-plasma-engine-akonadi-4.9.2-782.1.x86_64
akonadi-runtime-1.8.0-131.2.x86_64
libakonadiprotocolinternals1-1.8.0-131.2.x86_64
akonadi-4.9.2-356.1.x86_64
plasma-addons-akonadi-4.9.2-184.1.x86_64
libakonadi4-4.9.2-290.1.x86_64
Comment 14 Allen Winter 2012-10-26 12:47:00 UTC
so you are both using version 1.8.0.

maybe version 1.8.1 will work better, as Andras said
Comment 15 Pavel Punegov 2013-01-27 19:32:05 UTC
I'm using latest 4.9.4 KMail2 and it has the same problem.

Have looked to filter log and it seems that sometimes kmail can't get list of addresses from 'To' or 'CC' from mail. All mails that was not filtered had empty list in on of these fields in the log, but after manual filter invocation they had all mail addresses.
Comment 16 Christian Quast 2013-02-12 12:24:27 UTC
After a long time away from Linux I just upgraded to KDE 4.10 and the problem remains.

Filters that use List-ID don't seem to work at all anymore (at least in the majority of cases). Also, manually invoking the List-ID filters leave most of the message untouched now (in my experience it's getting worse).

Filters based on 'All Recipients', however, seem to mostly work.

Version installed (on opensuse 12.2)
akonadi-runtime-1.9.0-127.1.x86_64
akonadi-4.10.0-380.1.x86_64
libakonadi4-4.10.0-317.1.x86_64
libakonadiprotocolinternals1-1.9.0-127.1.x86_64
kmail-4.10.0-380.1.x86_64
cheers
 Christian
Comment 17 András Manţia 2013-02-28 08:26:35 UTC
Fixed in KDE 4.10.1 and later by Wolfgang Rohdewald.
http://commits.kde.org/kdepim/185c572e079ef40bee2225e582c11dbdbb35840f
Comment 18 Christian Quast 2013-03-11 18:59:09 UTC
this has not been solved.


Messages that are filtered based on a mailinglist ID are never sorted. Also, some of the mails will not be sorted when the filters are applies manually.

Running openSUSE 12.2. KDE related Versions :

akonadi-runtime-1.9.0-127.1.x86_64
libakonadi4-4.10.1-323.1.x86_64
akonadi-4.10.1-386.1.x86_64
libakonadiprotocolinternals1-1.9.0-127.1.x86_64
kmail-4.10.1-386.1.x86_64
kontact-4.10.1-386.1.x86_64