Bug 449329

Summary: ENH: Filter should support full Boolean logic
Product: [Applications] kmail2 Reporter: quazgar <quazgar>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.15.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description quazgar 2022-01-29 15:49:57 UTC
SUMMARY

Currently the mail filters only support full conjunction (AND) or disjunction (OR) over all criteria.  The filters could become much more expressive if nested criteria could be defined, such as `a AND (b OR c)` or even `(NOT "From = foo") AND ("Subject = Interesting")`.

For me this would resolve use cases where for example I receive mails to different addresses on the same mailbox, and I want to apply different filters on some of them.

UI/UX IDEAS

Unfortunately I do not have a completely intuitive UI in mind which would be ideal for casual and power filter users alike.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Currently 5.15.3 (20.08.3) on Debian Bullseye