Wietse Venema:
> 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: "nore...@equair.com.ec" <<no-re...@kiusys.com
> > 
> > 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


Correction for missing '/' at te end of the pattern:

    /^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 <u...@example.com>' pcre:/path/to/file
>     postmap -q 'From: u...@example.com (First Last)' pcre:/path/to/file
> 
>       Wietse
> 
> 

Reply via email to