On Thu, 2010-02-25 at 12:37 +0000, [email protected] wrote: > Hello, > Not that exactelly, > > I take my example: > > if $header_to: is "[email protected]" then deliver "[email protected] endif > > > Now if I take a new email and I put in the destinary field (A) 2 addresses > like [email protected] and [email protected], the filter will not match. > > I know in this case the most likely condition to take is "contains" but > like I said in my first email, this condition will filter all others > adresses like "[email protected]" and I don't want this. > > Is it clear now?
So the message received has more than one address in To headers, like this: From: "John Smith" <[email protected]> To: "Peter Pan" <[email protected]>, "Capt. Hook" <[email protected]> In which case, "is" doesn't match the header because the header is no longer just that address, and "contains" isn't specific enough. Maybe a foranyaddress would work here. if foranyaddress $h_to:,$h_cc: ($thisaddress matches ^[email protected]) then deliver "[email protected]" endif Again, not tested, but that's almost straight out of the manual -- The Exim manual - http://docs.exim.org -- ## 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/
