On 12/10/2018 14:37, Tomasz Piotrowski via Exim-users wrote: > deny senders = *
> message = Blocked due to unwanted subject line.
> condition = ${if
> and{{def:header_subject:}{match{$header_subject:}{${readfile{/etc/exim4/subjects_reject}{|}}(?!)}}}{1}{0}}
>
> log_message = Blocked by unwanted subject line
> (subject=$h_subject:)
>
> But that filter doesn't read subject coded in utf8. Is there any method
> to rebuild above filter that blocked mail with uth8 subjects?
Try something like
/[\x80-\x8f]/aa
as a pattern. The idea is to get any top-bit-set byte, and do it
in a non-Unicode way. Read "man perlre" for info on pattern
matching if that doen't work right.