Author: Gareth Hastings Date: To: exim-users Subject: Re: [exim] System Filters
> 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 ghastings@???
endif