I was able to get something to work using IMAP filters on the account receiving the forwarded messages, but there is one case I know of where it won't work and that is when the message is BCC'd to the second account.
In this example, I am using 3 accounts. user1@test.com, user2@test.com and user3@test.com.
user1 and user2 are configured to forward to user3.
On the user3 account, I created 2 IMAP filter rules.
Rule0=If <X-MDRedirect_From> contains "user1@test.com" and <TO> contains "user2@test.com" then move to {Inbox\Deleted Items}
Rule1=If <X-MDRedirect_From> contains "user1@test.com" and <CC> contains "user2@test.com" then move to {Inbox\Deleted Items}
Basically, these filters are looking at messages that have been forwarded from user1 and if the To or CC headers also contain user2, then the message is moved to the deleted items folder.
If you want to use something that also catches copies sent via BCC, you'd have to use the content filter and write a custom script.
On Tue, 2 Mar 2021 12:47:39 -0500, "lists-md-support@mdaemon.com (Jose Ling)" <lists-md-support@mdaemon.com> wrote:
When multiple addresses are forwarding to one account, is there any way to avoid duplicate mesages in this account when the same message is sent to all the addresses?
View/reply at Duplicate messages in forwardings
--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe
from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------
--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion. MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------
--MD-SUPPORT--------------------------------------------------------------
This list is for questions and discussion about MDAEMON. To unsubscribe
from this mailing list send an email to md-support-unsubscribe@mdaemon.com .
--POWERED BY MDAEMON!-----------------------------------------------------
--------------------------------------------------------------------------
These forums are provided by MDaemon Technologies for user-to-user
support and discussion. MDaemon staff members may participate in the
forums periodically but please recognize that this is not the official
method of receiving technical support. To receive personal technical
support please use the form here:
http://www.mdaemon.com/Support/RequestSupport/
--------------------------------------------------------------------------