Re: [Exim] verify and condition

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Phil Chambers
CC: exim-users
新しいトピック: [Exim] verify and condition (2)
題目: Re: [Exim] verify and condition
On Mon, 6 Jan 2003, Phil Chambers wrote:

> This seems a bit heavy handed, so I was wondering if there is there a way of
> detecting the verify state in the condition option. I can't see a specific
> variable, but noticed that $message_id is empty during the verify phase. Can I rely
> on that and put
>
>   condition = or{{!def:message_id}\
>      {${run {/usr/local/exim/list-log.pl $local_part $message_id}{yes}{yes}}}}

>
> So that the run part does not happen during the verify phase?


That will work in all ACLs except a DATA ACL. By the time the DATA ACL
is run, a message ID has been allocated.

It's a good idea to be able to detect verifying in a router, however. In
fact, it occurs to me that it might be useful to detect all the
different cases in which routers are run. I'll think about that one.

> I would like to add the $sender_address to the arguments I pass to the perl script.
> Do I need to wrap it in anything or quote it to prevent peculiar sender addresses
> causing command-line argument complications?


Yes. Use ${quote:$sender_address}.


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