On Tue, 27 Feb 2007, #Ronan McGlue wrote:
>
> I am looking to move to peruser scanning, so I would need to change only one
> line of the above to
>
> spam          = $local_part:true
> which will use the local part of the email address as the username.

This won't work because there may be multiple recipients for a single
message. Therefore Exim doesn't define the per-recipient variables (like
$local_part) in situations when you are dealing with the whole message,
including the DATA ACL.

The first thing you must do is decide what policy you want for messages
with multiple recipients, then hack around to implement it. Unfortunately
there's no easy solution, even for common policies.

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   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}}

Reply via email to