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

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: Adam Funk
CC: exim-users
Temat: Re: [exim] Using delay_warning_condition with a separate-file domain-list.
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} }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}