Bug 304393

Summary: Searching Match all/Match any is inconsistent
Product: [Applications] kmail2 Reporter: Michael Reiher <redm>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 4.8.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.10

Description Michael Reiher 2012-08-01 18:56:49 UTC
In both examples I have Match all ... selected, which is default.

Example 1)
In the first rule I enter: From contains foo
-> search work fine, I get my results

Example 2)
In the first rule I enter: Message Status is Important
-> search fails, I get no results
-> if I change "Match all" to "Match any" the search works fine!

This inconsistent. Actually if only the first rule has content it shouldn't matter at all whether its "all" or "any". Empty rules should be ignored all together.

And why is there a second rule at all? It can easily be added when it's needed and wouldn't create unnecessary confusion.

Reproducible: Always
Comment 1 Laurent Montel 2012-08-01 19:58:33 UTC
"Message Status is Important" it's can't work because it's not stored in nepomuk.
So I don't know how you can have result...

And it's already reported that status is not stored
Comment 2 Michael Reiher 2012-08-02 09:31:06 UTC
If you don't know why this works, I have no idea... ;)

All I can say is that the result doesn't seem completely random. It shows messages that either are currently flagged Important or were in the past. But it's also missing some newer ones, as I just noticed. Hmm, no idea what's going on.
Comment 3 Laurent Montel 2012-10-16 06:39:25 UTC
I fixed search status yesterday.
Now all status are stored in database.