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? > On Thu, 2010-02-25 at 07:54 +0000, [email protected] wrote: >> Bonjour, >> Pas exactement. Ca je connais. >> >> On prend cet example. >> >> |if ($header_to: is "<[email protected]>)" then |deliver >> "[email protected]" >> >> Maintenant je veux envoyer un nouveau message et sur le champ des >> destinataires (A ou CC) je mets [email protected] et [email protected], le >> message de [email protected] ne sera pas délivré à [email protected] car >> la >> condition est "is". J'ai testé avec la condition "contains" qui marche >> mais cette condition comme je l'avais dit au début ne permet pas de >> départager les adresses. Cette condition "contains" va délivrer aussi >> les >> messages de toutes adresses de type <[email protected]> à >> [email protected]. >> >> Est-ce qu'il y'a pas moyen de lever cet équivoque avec la condition >> "contains" c'est-à -dire utiliser de symboles ou autres choses. >> Je rappelle que j'en ai testé quelques uns comme $, ^, <> et []. >> >> J'espère que c'est clair. >> >> Bien à vous. > > Mon francais n'est pas tres bein. > > So bad that I probably shouldn't destroy the language. > > The "contains" testing condition doesn't work all that well when you > only want to match the exact thing you're looking for. > > The following should match any emails that have [email protected] OR > [email protected] in the To or CC fields (A ou CC, je pense?), making a > significant delivery to [email protected] > > if "$h_to:, $h_cc" matches "^(user1|user2)@example.com" then deliver > "[email protected]" > endif > > Not tested, sorry. > > -- > 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/
