Re: [Exim] ACL to Reject no subject

Top Page
Delete this message
Reply to this message
Author: Bradford Carpenter
Date:  
To: Marc Perkel
CC: exim-users
Subject: Re: [Exim] ACL to Reject no subject
On Sun, 11 Jul 2004 19:00:05 -0700, Marc Perkel wrote:

> Which section do I put that in? It doesn't seem to be working.
>
> Bradford Carpenter wrote:
>
>> On Sun, 11 Jul 2004 10:34:11 -0700, Marc Perkel wrote:
>>
>>
>>
>>> How would I write an ACL to reject messages with the subject missing?
>>>
>>>
>>
>> Won't something like this work for an empty subject line?
>>
>> deny    condition = ${if eq{$h_subject:}{}{yes}{no}}

>>
>> Or this for a missing subject header?
>>
>> deny    condition = ${if def:h_subject: {no}{yes}}

>>
>> Or am I missing something?


As near as I know, exim does not have complete access to the header
lines until the DATA ACL. So I believe this is where you must do any
checks on the existence or content of the email's header fields. I'm
using some similar conditions to set ACL variables, not to reject the
message, but I'd be surprised if this doesn't work in the DATA ACL.

Best regards,
Brad Carpenter