Re: [Exim] Filter on to and cc with same variable?

Top Pagina
Delete this message
Reply to this message
Auteur: Nico Erfurth
Datum:  
Aan: Jeff Wishnie
CC: exim-users
Onderwerp: Re: [Exim] Filter on to and cc with same variable?
Jeff Wishnie wrote:

> I do this _a lot_ and am looking for a shortend so that I don't have to duplicate each test. Something like:
>
> if $to_or_cc contains "exim-users"
>     then save .Lists.Exim/

>
> Does this shorthand exist?


check the foranyaddress-operator, like this one:

if foranyaddress
$h_cc:,$h_to:,$h_resent-to:,$h_x-trap-address:,"$local_part@$domain"
   ($thisaddress matches \N^a?trap-[\w.]+-\d+\N or
    $thisaddress is "spamme@???" or
    $thisaddress is "crush@???" then
   pipe "/usr/bin/razor-report -home=/var/imap/razor"
   save .Trapped/
endif