Bug 364903

Summary: Certain search terms do not work, such as 'equals' and 'does not contain'
Product: [Applications] kmail2 Reporter: Michael Mol <mikemol>
Component: searchAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kdenis
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Mol 2016-06-29 18:10:04 UTC
(Using Kontact Version 4.14.10, but the issue is not new to that version)

If I go to "Find Messages" and specify a search criteria of "Subject" "does not contain" "some string", my result set contains *only* results that contain "some string"

Let's say I have a message with a subject of "[Backups 0017611]: somehost - Backup - 43251 - OK"

If I search for "Subject" "does not contain" "Backups", that message will appear in my result set. Likewise, if I search for "Subject" "equals" "Backups", that message will appear in my result set. 

Reproducible: Always

Steps to Reproduce:
1. have a message with a subject of "[Backups 0017611]: somehost - Backup - 43251 - OK"
2. search for "Subject" "does not contain" "Backups", that message will appear in my result set. 
3. search for "Subject" "equals"Backups", that message will appear in my result set. 

Actual Results:  
"[Backups 0017611]: somehost - Backup - 43251 - OK" appears in result set

Expected Results:  
"[Backups 0017611]: somehost - Backup - 43251 - OK" should not appear in result set.

The lack of these search mechanisms makes searching my mail very difficult...
Comment 1 Denis Kurz 2017-01-13 20:41:56 UTC

*** This bug has been marked as a duplicate of bug 348364 ***