Re: [exim] Don't send certain emails

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Stanislaw Halik
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Don't send certain emails
On Wed, May 30, 2007, Anthony Honeyfield wrote:
>> deny condition = ${if match_local_part{$authenticated_id}{+jobcode}}
>> !condition = ${if match{$message_body}{(?s)^#[0-9]{3}-\n}}


> Order of yes / no doesn't seem to affect script, which still isn't
> finding job code #000- in the body of the email.


Oops. Try:

${if match{$message_body}{(?s)^#[0-9]\{3\}-\\n}{foo}{bar}}

> A. What (?s) is for, and> B.


Cause the "^" to match beginning of the whole message.

> Lastly, the ACL checks both incoming and outgoing email, and I don't know
> how to make it check outgoing only. Our users are not required to
> authenticate, so some other mechanism is needed.


!domains = +local_domains

-- 
Whenever you find that you are on the side of the majority, it is time
to reform.
                -- Mark Twain