Author: Magnus Holmgren Date: To: exim-users Subject: Re: [exim] Question on expansion behaviour in DATA ACL
Marco Schumann wrote: > Hello,
>
> my brain is twisted as I tried all day to stop accepting mails with a
> subject matching "Fw: ${local_part}_report.pdf" as I face an unwanted
> wave of those mails.
>
> As $local_part isn't available in system filters, I tried to workaround
> this by storing a "suspicious" subject after RCPT TO and comparing it
> with the subject after the DATA command:
Here's something that will work in a system filter:
if foranyaddress $recipients ($h_Subject: is "Fw:
${local_part:$thisaddres}_report.pdf") then