Re: [exim-dev] [Bug 458] Expansion condition: forall and/or …

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Magnus Holmgren
CC: exim-dev
Assumpte: Re: [exim-dev] [Bug 458] Expansion condition: forall and/or forany
On Wed, 7 Feb 2007, Magnus Holmgren wrote:

> ${if match_address {$h_From:}{+something}} instead of ${if match_address
> {${address:$h_From:}}{+something}}. Less typing :-)


But strictly invalid, of course, since From: is allowed to contain more
than one address. :-)

> Unless address_list does extract the effective addresses instead of
> merely converting the commas and doubling the nonseparating colons.
> But in that case I find the name "addresses" appropriate, for it does
> exactly the same thing as ${address:}, but in plural.


Maybe that is the best way forward here. It is a nice clean spec. Your
example above then becomes

${if forany{${addresses:$h_from:}}{match_address{$item}{+something}}



-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book