Bug 348364 - Find messages: Field "does not contain"/"equals"/... is always treated as "contains"
Summary: Find messages: Field "does not contain"/"equals"/... is always treated as "co...
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: search (show other bugs)
Version: 5.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 335825 364903 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-28 12:02 UTC by davidblunkett
Modified: 2017-01-13 20:48 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davidblunkett 2015-05-28 12:02:22 UTC
(1) If I search for foo and bar then I get mails containing both foo and bar

(2) If I search for foo and ~bar (using "does not contain") I should get mails containing foo but not bar, however, I get the same results as (1)

It looks like "does not contain" is being ignored

Reproducible: Always

Steps to Reproduce:
search emails using the search dialogue, search to "does not contain" and get the results containing your search term.

Actual Results:  
does not contain is ignored or translated to "contains"

Expected Results:  
results shouldn't contain search term
Comment 1 Denis Kurz 2016-09-24 18:05:45 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 2 davidblunkett 2016-09-28 09:58:49 UTC
I cannot confirm this for 5.1.3 because searching is broken there and all search produce no results regardless of the logic filters applied.
Comment 3 Denis Kurz 2016-09-28 19:20:41 UTC
I set this to confirmed for now. I plan to file through search related bugs soon, and then sort them out accordingly. Thank you for your feedback
Comment 4 Denis Kurz 2017-01-13 14:54:48 UTC
*** Bug 335825 has been marked as a duplicate of this bug. ***
Comment 5 Denis Kurz 2017-01-13 15:03:26 UTC
Confirmed for 5.4.1. Searching for messages with subjects that do not contain "foo" comes up with those that contain "foo".
Comment 6 Denis Kurz 2017-01-13 20:41:56 UTC
*** Bug 364903 has been marked as a duplicate of this bug. ***
Comment 7 Denis Kurz 2017-01-13 20:48:06 UTC
According to Bug 364903, this also does not work for "equals" or anything else instead of "does not contain". Basically, it is always treated as "contains".