Improve message filtering on From: address
Categories
(Thunderbird :: Untriaged, enhancement)
Tracking
(Not tracked)
People
(Reporter: github, Unassigned)
References
Details
Attachments
(1 file)
|
15.26 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Steps to reproduce:
Given an incoming message From: address of
Massive Spammer <random@random.com>
You cannot create a From filter that checks for the string "Massive Spammer". You can only create a filter that checks for "random@random.com"
Many spam messages use the notorious company name in the "Massive Spammer" part of the field, and then use a changing email address in <random@random.com>. Every sales campaign from the same company uses a different address/domain name.
Please modify the From filter to either include the plain text name or add another filter criteria to look at the entire string.
Actual results:
Creating a From filter on random@random.com fails to filter out messages from random@domaindejure.com, even though the plain-text address is the same for all messages from them. Creating a From filter containing "Massive Spammer" is completely ignored as this string is not found inside the angle brackets.
Expected results:
Filtering on "From contains Massive Spammer" should direct any message with that string found anywhere in the From: line to my spam folder or trash can. This would be regardless of the mailbox/domain name part of the address.
Comment 1•7 years ago
•
|
||
I'm really surprised by this. The Quick Filter Bar on From also looks at the display name. So I created a filter to mark message as read (not to be too destructive on my own data) based on a word in the display name which wasn't in the e-mail address inside the < > and the messages were marked as read.
That's in TB 68, but I don't think TB 60 was different.
What am I missing? I've tried on both local folder and IMAP.
Comment 2•7 years ago
|
||
Jorg,
Thanks for getting back to me!
Are you using email-address-incompatible strings as search criteria?
I used
"3 Day Blinds"
and
"Insider News Channel"
No quotes.
Both filter criteria were completely ignored, even though there were a dozen messages with that string in the From address found in the folder I was working on. I tried using single criteria (Match all of the following) and multiple criteria (Match any of the following). It made no difference.
I used "From Contains" on both filtering attempts. It looks like the filter does not even run. Usually the Run Now button grays-out for a second or two while the filter iterates through the messages. With the above strings, the button immediately returns to the normal state after clicking it.
Note: I am running Message Filters on non-inbox IMAP folders that I created. I am not using Search or Quick Filter.
Message Filtering does not seem work on incoming messages to my In-Box when using the above strings and modes. Other filters work fine.
For my tests, I selected a single filter and a folder that had messages containing the above strings. I clicked the Run Now button.
BTW, I have many many filters (~150) since I have had the same email address since the early 90's and I get a LOT of spam.
The machine runs Window 10, i7-6700K 4 GHz, 8 Core CPU with 32 GB of RAM, 2 TB Raid-10 HDD.
Comment 3•7 years ago
|
||
As you can see, "3 Day Blinds" (with no quotes) finds the message in the QFB. Also a filter marks the message unread when run on a local or IMAP folder.
I think you'll need to run this with IMAP logging. Use IMAP:5 and follow this:
https://wiki.mozilla.org/MailNews:Logging
Once we have the log, our IMAP expert can look at it.
Comment 4•7 years ago
|
||
Jorg,
Hmm. Your filter dialog looks different than mine. Here is mine:
http://www.mithrack.serveftp.net/Thunderbird/Captured001.png
Sorry, I couldn't get image embedding to work on Bugzilla.
I ran the IMAP log as you requested. I let it "stabilize" for a few minutes (I have 5 IMAP accounts across several domains), waiting for Thunderbird to check folders and download new messages.
About 1.5 MB of log file later... :-)
Next I tried running a 3 Day Blinds filter and watched the IMAP log in realtime using BareTail, a log viewer. There were no new log IMAP entries when I ran the filter. Additionally there were no new log entries in the Filter Log found in Thunderbird. I think the filter log only records successful filter "hits" on messages.
Is there any more info that you need?
Comment 5•7 years ago
|
||
I cropped the picture of my filter dialogue and pasted the QFB picture above. I'm also using TB 68.1.1.
Moving messages in a filter should leave some traces in the IMAP log.
I suggest this: Use TB 68. We have new filter logging in that version (bug 697522, sadly action logging, bug 1547508, is only in TB 70 beta, which you can also try). Use: Filters:5
Comment 6•7 years ago
|
||
I just tried the latest 70.0b2 (32-bit) beta. It seems to correctly process From names like "Alaska Airlines <abcd@efgh.com>" Where the search filter string is "Alaska Airlines". I am a happy camper. Thanks for working with me Jorg!
Comment 7•7 years ago
|
||
I'd be a happy camper if you could confirm that this it working in our current release version 68.1.1.
Updated•7 years ago
|
Updated•5 years ago
|
Description
•