Jim Witte schreef:
How would I write a filter that would filter out messages where
part of the From field matches the beginning of the Subject field?
I've noticed a huge amount of spam in the following form:
> From: "<x> Madrid" <indication'scoarser(_at_)abs-cbn(_dot_)com>
> To: <jsylvest(_at_)indiana(_dot_)edu>
> Subject: <x> wrote:
Until the spammers update the bots (modify one of the words
perhaps), it would seem such a filter to detect the 'From:\s"(.*)
\s*Subject:\1\swrote' pattern or something like it..
Sorry if this is an 'old hat' trick here..
There is more wrong with those messages, and these other patterns are
better to filter on.
1. Often the Date-header has an invalid TimeZone, like not ending in
Date: Fri, 5 Jan 2007 16:10:44 -0540
2. The quote inside the From: address is also worth spamscore points.
From: "Gregorio Summers"
3. The oldest Received header field is peculiar, example:
Received: from 188.8.131.52 (HELO mailhost.abargainauto.com)
by munged.invalid with esmtp (U5/*/K6SY8+J 03.3B)
for munged(AT)munged.invalid; Fri, 5 Jan 2007 16:10:44 -0540
4. The Message-ID is peculiar, like
Specifically, it starts with 3 groups of 8 alphanumeric characters,
separated by '$'.
procmail mailing list Procmail homepage: http://www.procmail.org/