Bug 223452 - Fix and improve filtering support
Summary: Fix and improve filtering support
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: misc (show other bugs)
Version: 1.99.0
Platform: Unlisted Binaries Linux
: HI normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: akonadi-ports-regression
Depends on:
Blocks: 223438
  Show dependency treegraph
 
Reported: 2010-01-19 20:37 UTC by Thomas McGuire
Modified: 2011-09-17 18:29 UTC (History)
1 user (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 Thomas McGuire 2010-01-19 20:37:39 UTC
Right now, the automatic filtering filters everything that emits an itemAdded() signal.

This will not work very well: Items will get filtered when for the first time synchronizing a maildir or an IMAP account, when items are copied around and under other circumstances where items should not be filtered.

Also, the filtering should not block the KMail GUI. That is the most hated bug in KDE, and we promised to fix this for Akonadi, advertising this as one of the key benefits of Akonadi. We should deliver the promise.

There are two options to approach this: One is to bend the existing filtering framework in KMail into submission, and the other one is to use the new filtering framework for Akonadi from last year's summer of code.

Filtering should have all the features that KMail 1 had. That is all rules and actions, but also features like excluding accounts from automatic filtering on new mail, applying filters to outgoing or sent messages and so on (have a look in the old configure filters dialog)
Comment 1 Casey Link 2010-06-04 22:22:35 UTC
(In reply to comment #0)
> and under other circumstances where items should not be filtered.
So, under what circumstances should items be filtered?
 
> and the other one is to use the new
> filtering framework for Akonadi from last year's summer of code.
This is the filtering framework correct? 
http://websvn.kde.org/trunk/playground/pim/akonadi/filter/

How read for prime time is it?
Comment 2 Thomas McGuire 2010-06-07 14:52:58 UTC
> So, under what circumstances should items be filtered?

Only when checking mail with POP3/IMAP. Not at the initial sync, and also not on every ItemCreateJob. Basically we would need a flag for ItemCreateJob, and take care to not filter on the initial sync

> This is the filtering framework correct? 
> http://websvn.kde.org/trunk/playground/pim/akonadi/filter/
>
> How read for prime time is it?

I'd say it still needs a fair amount of work, not something that could be done before the KMail 2.0 release.
Comment 3 Tobias Koenig 2011-09-17 18:29:09 UTC
The mail filter agent is in master now