Bug: New Message Filter - message not filtered
Status: RESOLVED
Priority: --
Resolution: INCOMPLETE
Created: 2022-09-22 11:41:59+00:00
Resolved: 2022-12-04 20:56:05+00:00

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0

Steps to reproduce:

As of 0400 on 22-Sep-2022, Bug 10149 is STILL A PROBLEM. Message Filter must be run twice to completely/correctly filter the messages. But that old Bug Number is from 24 YEARS ago and it was last updated 18 years ago.

I had a Thunderbird session/window open for several hours doing much reading, typing drafts, and deleting.  I looked at the Junk Folder and had only FOUR (4) emails present.  All had a very old HOTMAIL email address in at least one of the address fields.  Since I had existing filters that I felt were not functioning correctly (sometimes a sender's email would be filtered/moved and sometimes it would remain in the Junk folder). I started to create a new filter.

I used only menu selections (no shortcuts) Tools/Message Filters and saw on the pop-up my existing filters. I looked at the filter log that I turned on approximately 13 months ago. I discovered it had been turned OFF! Then I turned ON the log and clicked Close.  Next I clicked New... to create a new filter.  I selected only one row/entry of conditions:  "From, To, Cc, Bcc" fields” plus "contains" plus a specific email address (my old Hotmail email address that has been permanently forwarded to my current Hotmail email address for about nine (9) years.)  

I did not enter the action to perform. I moved the cursor to the left frame and created a New Folder (parallel to the Inbox, Drafts, etc.) while the Filters popup was still open.  Next I returned to the popup. I thought/assumed the drop-down list Might not recognize the new Folder unless I closed/reopened the popup.  I did NOT look at the drop-down list to verify whether or not the new Folder was actually present.  I closed the Message Filters popup, then immediately went through the menu selections again to reopen the Message Filters popul.    I entered the required conditions again ("From, To, Cc, Bcc" that "contains" the one email address).  Then I added only one (1) action to perform:  "Move message to" and designated the new Folder.  I accepted all other default values, saved the filter and immediately clicked Run… for to filter the Junk folder that was .  Next I manually ran the filter on the Junk folder.


Actual results:

When I clicked Run..., 
Only 3 of the 4 emails was filtered and moved to the new folder.  
I immediately recognized the filter did not work. I next examined all 4 of the remaining email carefully to ensure I did not make a mistake in my expectation.

The unfiltered email appeared identical to one that had been filtered/moved; both showed my old Hotmail  email address in BOTH the "From" and "To" fields. 

The other 2 (correctly filtered) junk emails were "Mail deliver failed" in direct response to the first two messages.  The failed-delivery emails show my old Hotmail email address in ONLY the "To" field.

Next I clicked Run... a 2nd time to manually run the filter again, and that last/4th email filtered and moved to the new folder. 


Expected results:

I expected all 4 emails to be automatically filtered and moved to the new folder on the 1st time I clicked Run...  

Your list of Thunderbird versions does not appear to match what I see on the about screen, so I selected Thunderbird 102 to match the first 3 digits in the version that I have.
[[Elsewhere in Thunderbird I set it to put email in my Inbox if the “From” address is in either of my address books, but throughout this month/September 2022,  I have found MANY emails put in the Junk Folder instead of my Inbox, yet I confirm each time that Thunderbird shows the star beside the From email address verifying it is in my address book.  I have Thunderbird connected to two different email addresses - one through Hotmail and the other through Spectrum's domain kc.rr.com.   ALSO, I check my email account using two (2) devices:  a Dell computer (Windows 10 Professional, using Thunderbird, and I use Firefox, too) AND a Samsung Se10+ Android cell phone (Samsung’s default email “app”).  Sometimes I use a cheap Samsung S10 Android cell phone.]]

The Filter Log showing both manual Runs (at 0339 and 0347) and the last/4th email is shown as sorted BOTH times.  I copied/pasted the Log below for your review.

 [9/22/2022, 3:39:54 AM] Applied filter "cc2319 HOTMAIL sort" to message from Mail Delivery System <Mailer-Daemon@host.cbne.ws> - Mail delivery failed: returning message to sender at 9/22/2022, 3:20:19 AM moved message id = E1obHRT-000OOc-5r@host.cbne.ws to imap://Curts-lawrence%40hotmail.com@outlook.office365.com/2319_SORT_GARBAGE

[9/22/2022, 3:39:54 AM] Applied filter "cc2319 HOTMAIL sort" to message from Get CBD Deals <getcbddeals@gmail.com> - Purpose 2 at 9/22/2022, 3:20:18 AM moved message id = E1obHRS-000OOC-MV@host.cbne.ws to imap://Curts-lawrence%40hotmail.com@outlook.office365.com/2319_SORT_GARBAGE

[9/22/2022, 3:39:54 AM] Applied filter "cc2319 HOTMAIL sort" to message from Mail Delivery System <Mailer-Daemon@host.cbne.ws> - Mail delivery failed: returning message to sender at 9/22/2022, 3:20:13 AM moved message id = E1obHRN-000ONL-VX@host.cbne.ws to imap://Curts-lawrence%40hotmail.com@outlook.office365.com/2319_SORT_GARBAGE

[9/22/2022, 3:39:54 AM] Applied filter "cc2319 HOTMAIL sort" to message from Get CBD Deals <getcbddeals@gmail.com> - Purpose 2 at 9/22/2022, 3:20:13 AM moved message id = E1obHRN-000ON7-Fx@host.cbne.ws to imap://Curts-lawrence%40hotmail.com@outlook.office365.com/2319_SORT_GARBAGE

[9/22/2022, 3:47:16 AM] Applied filter "cc2319 HOTMAIL sort" to message from Get CBD Deals <getcbddeals@gmail.com> - Purpose 2 at 9/22/2022, 3:20:18 AM moved message id = E1obHRS-000OOC-MV@host.cbne.ws to imap://Curts-lawrence%40hotmail.com@outlook.office365.com/2319_SORT_GARBAGE