Re: [Exim] Blocking based on the subject

Pàgina inicial
Delete this message
Reply to this message
Autor: Darren Casey
Data:  
A: jvanasco
CC: exim-users
Assumpte: Re: [Exim] Blocking based on the subject
> i *think* you can access it like $h__subject or $h_subject
>
> don't remember how exim does it -- but there's some prefix like $h_
> that lets you plug in header fields with. its somewhere in the docs.
>


Thanks but I get
9355 H=(LAPTOP) [192.168.0.125] F=<test@???> temporarily rejected
RCPT <carpe@???>: failed to expand ACL string "${lookup mysql
{SELECT true FROM block WHERE condition = '${quote_mysql:${h_subject}}' and
type='subject' AND user = '${quote_mysql:$local_part}' limit 1}{$value}}":
unknown variable in "${h_subject}"

I suspect its something to do with :-

For incoming SMTP messages, no header lines are visible in ACLs that are
obeyed before the DATA ACL, because the header structure is not set up until
the message is received. Header lines that are added by warn statements in a
RCPT ACL (for example) are saved until the message's incoming header lines
are available, at which point they are added. When a DATA ACL is running,
however, header lines added by earlier ACLs are visible

And this subject test is an early ACL. Back to the drawing board

Thanks
Darren