Re: [exim] using an ACL to check for a Content-type header

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] using an ACL to check for a Content-type header
On 27/08/14 15:23, Oliver Howe wrote:
> I have this set in my config file -
>
> acl_smtp_data = acl_check_data
>
> and then in the ACL section I check each message to see if it has a
> Content-type header present by doing this -
>
> accept condition = ${if def:header_Content-Type:}
>          set acl_c_ctnm = yes
> accept

[...]
> But I have recently found a message where acl_c_ctnm is showing up as yes
> but there is definitely no Content-type header when I view the message
> header.
>
> Does anyone know why this might happen? Could it happen if a batch of
> messages were received and one of them had the content-type header set
> which then caused it to be written to all messages in the same batch?


Yes. acl_c~ variables are per-connection. Use an acl_m~ variable.
--
Cheers,
Jeremy