Re: [exim] Limiting $header_to: to local users ???

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: Sartorelli, Kevin
CC: exim-users
Temat: Re: [exim] Limiting $header_to: to local users ???
On Fri, 15 Apr 2005, Sartorelli, Kevin wrote:

> I have an entry in my system_filter.exim file that sends a mail message
> to the local user if a condition is true. Thus, for an outgoing
> message, it is sent to $header_from: and for an incoming one, it is sent
> to $header_to: This works fine when it is only addressed to one person,
> but 'spams' when there are multiple people in $header_to: (no problem if
> they are all local, but big problem if not).
>
> How can I remove non-local addresses from $header_to: before using it?


Why not use $recipients instead?

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}