I have an IMAP account (me@somedomain.suffix).
In Thunderbird, I am trying to implement the following behavior: for any new message in the IMAP Inbox, move that message to the IMAP Deleted folder and also put a copy of the message into my LocalInbox folder within Local Folders.
To accomplish this, I have created a Filter Rule:
Apply filter when:
( ) Manually Run
(X) Getting New Mail [Filter after Junk Classification]
( ) Archiving
( ) After Sending
( ) Periodically, every 10 minutes
Match ALL of the following
From doesn't contain me@somedomain.suffix
Perform these actions:
Copy Message to LocalInbox on Local Folders
Move Message to Deleted on me@somedomain.suffix
Note that switching the order of the performed actions did not change the execution order as reported by Thunderbird.
For a new message in my IMAP Inbox, this filtering works well: the message is moved to the IMAP Deleted folder and a copy is also put into LocalInbox in Local Folders.
However, if I then click on the IMAP Deleted folder in Thunderbird, then the message that has just been moved to that folder is suddenly copied again into LocalInbox in Local Folders. It is as though clicking on the IMAP Deleted folder is triggering more filter processing? As a result, I will have two copies of the new message in LocalInbox in Local Folders.
Note that this extra copying only happens one time for any new message. If I click on the IMAP Deleted folder a second time, Thunderbird will not copy the same message to LocalInbox in Local Folders a third time.
Further, if a new IMAP message is received while the IMAP Deleted folder is selected in Thunderbird, then two copies of the new message will be put into LocalInbox in Local Folder during the initial filter processing (I won't need to click/select anywhere/anything to trigger the second copying event).
Redundant copying can be prevented by having the filter only operate on new/unread messages and then marking each message as read when processed; however, that results in the LocalInbox version of the message showing as read, and I would prefer new messages to appear as unread.
How do I prevent these redundant copy events?
In case any of this is useful:
*For the IMAP-account Server Settings in Thunderbird, I have "When I delete a message: (X) Move it to this folder: Deleted on me@somedomain.suffix"
*Thunderbird version 68.2.2 (64-bit) on 64-bit Ubuntu 18.04.3 LTS.
*The IMAP account is mac.com.
Thanks for any guidance!