Bug 285641

Summary: improve the filtering conditions handling
Product: [Frameworks and Libraries] Akonadi Reporter: Christophe Marin <christophe>
Component: Mail Filter AgentAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: montel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christophe Marin 2011-11-03 12:06:09 UTC
Using master,

Currently when setting a filter, you can select match all or match any. This solution is fine when there is only two conditions but fails if there are more, eg:

condA AND (condB or condC) is not possible.

Use case:
filter messages sent to kde-commits and that match (X-Commit-Project="kde-runtime" OR X-Commit-Directories contains "kdebase/runtime")
Comment 1 Laurent Montel 2011-11-03 12:39:23 UTC
We need to create a interface for it.
Not easy to create it.

Do you have some idea ?
Comment 2 Christoph Feck 2017-06-02 15:24:03 UTC
The Device Actions KCM (kcmshell5 solid-actions) has an editor which allows nested AND and OR conditions (visualized using a tree).