SysAdmin EM:
> Hi!!
>
> I am using the prepend option as follows:
>
> / From: (.*@mydomain.com)/ PREPEND Reply to: $1
>
> When the mail arrives I see that it does this way:
>
> Reply-to: "[email protected]" <<[email protected]
>
> I see an additional symbol added (<)
The '<' was already present in the From: header.
> any help?
If you must do this, why not copy the entire From: value?
/^From:(.+@example\.com\b.+) Reply-To:$1
Note: the \b matches a word boundary, and the \. matches . instead
of every character.
Test your patterns agains the following:
postmap -q 'From: First Last <[email protected]>' pcre:/path/to/file
postmap -q 'From: [email protected] (First Last)' pcre:/path/to/file
Wietse