Closed Bug 1587965 Opened 5 years ago Closed 5 years ago

Enable filtering by "string contains whole word"

Categories

(MailNews Core :: Filters, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 16750

People

(Reporter: u601362, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Add a filter >> subject contains "car" << to my news feeds filters as I'm not interested in car technology as a bike enthusiast.
Added a feed about product recalls due to hazardous/dangerous products.
That feed contained a warning about "Mascarpone" which obviously contains the substring "car"

Actual results:

The Mascarpone warning was filtered away which I did not expect to happen.

Expected results:

I want to be able to change all my keyword filters so that the complete substring must match.

E.g. the following subject line would match in the above described case.

"Car"
"Car washing"
"A new car"

While the following won't

"Cards"
"Careful"
"Drive-in-a-car"

So the UI for creating a filter should either have a checkbox "match whole word" or the dropdown box should have such an item so that I can even control this on a per condition basis when combining the conditions using the three checkboxes "Match all of the following", "Match any of the following", "Match all messages".

Component: Untriaged → Search
Product: Thunderbird → MailNews Core
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Component: Search → Filters
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.