Re: [Exim] Exim 4.1: rewriting question (changing "From:" he…

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Ralf G. R. Bergs
CC: exim-users@exim.org
Assumpte: Re: [Exim] Exim 4.1: rewriting question (changing "From:" header depending on recipient)
On Tue, 13 Aug 2002, Ralf G. R. Bergs wrote:

> why doesn't the following work?
>
> rabe@???     \
>         "${if eq {${lc:$h_To:}}{someone@???} {rabe-lkt}fail}" fQ

>
> I would like to rewrite the "From:" header with "rabe-lkt@<qualify>" if it's
> "rabe@???" AND the recipient of the message is
> "someone@???."
>
> I've tried several other variables instead of $h_To: but nothing helped:
> $received_for, $recipients.


What happened? Did it just not rewrite? What was the contents of the To:
header line when it failed? Are you sure 'eq' is the right test? It
won't match things like

To: some person <someone@???>

for example (not to mention more exotic RFC 822-isms). And what do you
want to happen for messages that are sent to more than one recipient?
Rewrite or not rewrite?


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.