Bug 505900

Summary: When filtering emails, display only the filtered results without their whole thread
Product: [Applications] kmail2 Reporter: Alexandre Bonneau <alexandre.bonneau>
Component: message listAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexandre Bonneau 2025-06-21 08:27:20 UTC
SUMMARY
When searching for a string, if you are using the threaded message list (which is great), then kmail shows the whole thread, making you wonder in which mails the string has been found.

STEPS TO REPRODUCE
1. Search for 'foobar' in the filter bar on top of the message list

OBSERVED RESULT
A few threads are shown, but with ALL the history of the thread, even messages that do NOT have the 'foobar' string in them

EXPECTED RESULT
Add an option (a toggle) to _only_ display the mails that are filtered, without the rest of the threads.
Better yet, you could toggle the search mode between 2 modes:
- By default, only show the emails that contains the searched string, or
- Show the filtered mails within their thread, but visually display which one contains the searched string (perhaps with a special icons at the beginning of the subject?)