Marc Perkel wrote:

>> The docs couldn't possibly be more clear.
>>
>> ${map} provides the examples:
>>
>> ${map{a:b:c}{[$item]}}
>> ${map{<- x-y-z}{($item)}}
>>
>> So I ran them though -be:
>>
>> r...@haven:~# exim4 -be '${map{a:b:c}{[$item]}}'
>> [a]:[b]:[c]
>> r...@haven:~# exim4 -be '${map{<- x-y-z}{($item)}}'
>> (x)-(y)-(z)
>> r...@haven:~#
>>
>> The output on its own explains exactly what it does without even having 
>> to read the rest of the documentation.
>>
>> The forall/forany documentation is equally clear and concise. I couldn't 
>> write better documentation if you gave me an entire afternoon to come up 
>> with it.
> 
> How would you use forall/forany to take a variable that contains a list 
> of domains:
> 
> domain1.com, domain2.com, domain3.com
> 
> And with each one it calls an ACL that does various dnslists lookups. In 
> this case it would verify that each one is NOT listed in any of the 
> white lists and is listed in a black list, and return true if any one of 
> them matches this criteria.

pseudo code:

forany {
    if( listed in whitelist ){
       false
    } else if( listed in blacklist ){
       true
    } else {
       false
    }
}

Mike

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to