Bug 405456

Summary: Search for custom header fails with inconclusive error message
Product: [Applications] kmail2 Reporter: quazgar <quazgar>
Component: searchAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 5.7.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=283020
Latest Commit: Version Fixed In: 5.11.0
Sentry Crash Report:
Attachments: Screenshot of the error message

Description quazgar 2019-03-13 22:25:57 UTC
Created attachment 118787 [details]
Screenshot of the error message

# SUMMARY

Trying to search (with "s") for a custom header field fails with an error message. 

# STEPS TO REPRODUCE
1. Open search dialog (see screenshot).
2. In the "Choose or type..." field, enter your desired header, e.g. "X-MyHeaderField".
3. In the value field, enter your desired value.
4. Press "Search" button

# OBSERVED RESULT
An error message appears: "Search failed some errors were found: 
You forgot to add conditions."

# EXPECTED RESULT
Search for messages with the expected condition.

# SOFTWARE/OS VERSIONS
Distro: Ubuntu 18.04.2 LTS
Qt: 5.9.5
KDE: 5.44.0

# ADDITIONAL INFORMATION
This would be a workaround for me until bug #283020 is implemented.
Comment 1 Laurent Montel 2019-03-14 12:19:24 UTC
I confirm it.
Comment 2 Laurent Montel 2019-03-14 12:39:35 UTC
Git commit 67eb99baa8fbb69ee23b040ee5247799f46a52f9 by Laurent Montel.
Committed on 14/03/2019 at 12:39.
Pushed by mlaurent into branch 'master'.

FIX Bug 405456 - Search for custom header fails with inconclusive error message
FIXED-IN: 5.11.0

M  +2    -0    src/search/searchrule/searchrulestring.cpp

https://commits.kde.org/mailcommon/67eb99baa8fbb69ee23b040ee5247799f46a52f9