Bug 416542

Summary: Search folders not filtering properly
Product: [Applications] kmail2 Reporter: Paul Lemmons <paul.lemmons>
Component: searchAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.11.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Paul Lemmons 2020-01-21 16:25:51 UTC
SUMMARY

I have created a search folder using "Find messages" and have named the folder so that I can reuse the search. In the search, I wish to only have messages from selected folders that contain a particular word in the subject and have an age that is less than 5 days. The search for word in the subject appears to be the only filter that is being acted on. I get messages from all folders regardless of age. 

STEPS TO REPRODUCE
1. Connect kmail to Exchange via IMAP
2. Open "Find Messages"
3. Select specific folders
4. Select Match all of the following
5. Select "Subject" "Contains" "Word"
6. Select "Age in Days" "is less than or equal to" "3 Days"
7. Name the Search Folder to something meaningful
8. Perform "Search"

OBSERVED RESULT

I get all messages that contain "Word" in the subject regardless of location or age. 

EXPECTED RESULT

The search would only return matches from selected folders and was less than or equal to 3 days old. 

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Kubuntu 19.10
KDE Plasma Version: 15.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION

The indexer is running and all messages are cached locally.