Re: [exim] Store (not deliver) messages if sent to/from an a…

Etusivu
Poista viesti
Vastaa
Lähettäjä: Magnus Holmgren
Päiväys:  
Vastaanottaja: exim-users
Kopio: Burhan Khalid
Aihe: Re: [exim] Store (not deliver) messages if sent to/from an address
Burhan Khalid skrev:
> On 12/12/05, Marc Sherman <msherman@???> wrote:
>
>>However, $h_to is almost certainly not what you want to be testing;
>>you'll miss CC's, BCC's, and screw up delivery to other addresses in
>>messages sent to the target address.
>>
>>You probably should use
>>
>>local_parts = burhan.khalid
>>domains = gmail.com
>>
>>instead.
>>http://exim.org/exim-html-4.60/doc/html/spec.html/ch15.html
>
> Marc:
>
>    Didn't understand what you meant by 'screw up delivery to other
> addresses'.  Are you saying that if someone was to cc: or bcc:
> burhan.khalid@???, then it would also get caught by the filter
> and not delivered?


In general, if a message has more than one recipient (envelope
recipients, handled by the host in question), each is routed
independently with $local_part and $domain set to the respective values,
but $header_to etc. is the same every instance. Thus, the condition will
be true either for all recipients or for none, which might or might not
be what one wants. The exact messiness in this case is left as an
excercise to the posters.

--
Magnus Holmgren