We have a need to rewrite an email address in message headers. I am attempting to write an mfilter rule to make this happen. I have created the following rules.
if (isin("recipient","email@example.com")) then
This works. It replaces both the email address and the "name" portion in the To address (see below).
To: "firstname.lastname@example.org" <email@example.com>
HOWEVER, if the message has multiple recipients, then the rule does not work.
To: "firstname.lastname@example.org" <email@example.com>, "firstname.lastname@example.org" <email@example.com>, "firstname.lastname@example.org" <email@example.com>
I know the isin() test is working because I added a "call report()" to the rule block and it sends me a report email. I have tried adding wildcards to the rule (see below), but this also does not work.
Is there any way to replace all instances of an email address in a header?
Thanks in advance,
Last Message | Next Message
Site Map |
Contact Netwin |
POP3 Mail Server |
Linux Webmail |
UnInstall instructions for all products
Copyright © 2017 Netwin Ltd. All rights reserved.