Re: [exim] Using delay_warning_condition with a separate-fil…

Góra strony
Delete this message
Reply to this message
Autor: Adam Funk
Data:  
Dla: exim-users
Temat: Re: [exim] Using delay_warning_condition with a separate-file domain-list.
On Thursday 17 November 2005 16:41, Tony Finch wrote:
> On Thu, 17 Nov 2005, Adam Funk wrote:
> > I now want to suppress delay warnings for messages to domains in the
> > same list. I think I want something like this:
> >
> >   delay_warning_condition = {$if \
> >       ${lookup{$domain}wildlsearch{/path/to/queue.list}}{no}{yes}}

> >
> > but I'm not using keys and values in the file, just presence or
> > absence. Am I on the right track?
>
> Yes, but your syntax isn't quite right. Remember that ${lookup has
> if/then/else functionality built in, so:
>
> delay_warning_condition = \
>   ${lookup {$domain} \
>     wildlsearch {/path/to/queue.list} \
>       {no} {yes} }


I didn't realize from section 9 of the on-line spec that lookup inherently
had that functionality. (I have subsequently seen the brief example
under "whoson".) Is that clarified elsewhere in the spec? If not, it
might be worth mentioning in section 9.