> Aren't I able to search through $header_to and $header_cc using
> foranyaddress? I'm currently trying to move a system filter that's
> running on an Exim 3.x system to a Exim 4.62 system. We current have
> filters that check for lots of domains a long winded way i.e.
> 
> if $header_to contains "twi.co.uk" or $header_to contains "dom1.co.uk"
> then
>  ...
> endif
> 


I've just tested this

if foranyaddress $h_to
(${lookup{${domain:$thisaddress}}lsearch{/etc/exim/test/gdh}{yes}{no}}
is "yes")
then
        seen deliver [EMAIL PROTECTED]
endif


and it works with no problems!



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

Reply via email to