RE: [Exim] filter file problem

Pàgina inicial
Delete this message
Reply to this message
Autor: Bernard Stern
Data:  
A: Will Lowe
CC: exim-users
Assumpte: RE: [Exim] filter file problem
On Thu, 6 Jul 2000 15:48:54 -0400 (EDT) Will Lowe wrote:

> Can anyone tell me what's wrong with the following rule in my .forward?


> pipe "$home/bin/newsgate ${lookup{$header_sender}lsearch{$home/sender.map}{$value}{fail}} none $sender_address $sender_host_name $header_subject"


RTFM: you need to put the ':' after a $header_ item:

$header_sender:

But why don't you use the variable $sender_address which contains the
envelope sender?

Also, fail does not need the curly braces. So, your string should read:

${lookup{$header_sender:}lsearch{$home/sender.map}{$value}fail}

Not tested, but it should be ok.

> I'm getting (in /var/log/exim/mainlog):


> 2000-07-06 12:44:15 13AHZH-0000rx-00 ** |$home/bin/newsgate
> ${lookup{$header_sender }lsearch{$home/sender.map}{$value}{fail}} none
> $sender_address $sender_host_name $header_subject <newsgate@???>
> D=userforward T=address_pipe: Expansion of "${lookup{$header_sender" from
> command "$home/bin/newsgate ${lookup{$header_sender
> }lsearch{$home/sender.map}{$value}{fail}} none $sender_address
> $sender_host_name $header_subject" in address_pipe transport failed:
> missing or misplaced { or }


> .. it seems to be complaining about mismatches {}s, but I think the ones
> in my "pipe" statement are all ok.


Regards,

Bernard Stern, SWITCH

____________S_W_I_T_CH___Swiss Academic_______________________________________
        mail: SWITCH Head Office       a          Tel: +41 1 268 1520
              Limmatquai 138           n          Fax: +41 1 268 1568
              CH-8001 Zurich           d        e-mail: stern@???
________________________________________Reseach Network_______________________