[Mimedefang] filter on header from display name
Marcus Schopen
lists at localguru.de
Wed Dec 19 02:34:34 EST 2018
Am Montag, den 26.11.2018, 13:02 -0500 schrieb Dianne Skoll:
> On Mon, 26 Nov 2018 17:55:57 +0100
> Marcus Schopen <lists at localguru.de> wrote:
>
> > is always the same, but I can't catch it with blacklist_from. Can I
> > get
> > that from $entity->head->get('From') or any better ideas?
>
> That should work, or you can open and read the file ./HEADERS, which
> contains the message headers (unwrapped, so exactly one header per
> line.)
I use a spamassassin rule now
header MY_HEADER_1 From =~ /^.*\@spammer\.com.*/
describe MY_HEADER_1 Header-Spam-Rule 1
score MY_HEADER_1 100
Ciao!
More information about the MIMEDefang
mailing list