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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Graeme Fowler
Dátum:  
Címzett: Oliver Howe
CC: exim-users
Tárgy: Re: [exim] using an ACL to check for a Content-type header
On Wed, 2014-08-27 at 15:23 +0100, 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


That's setting an ACL variable for the duration of the *connection*. If
the first message in sets it, it's set regardless of additional messages
and their headers.

You could use acl_m_ctnm instead, which is set for that *message*.

Graeme