Hi,
* Pollywog wrote (2004-07-28 17:54):
I am getting many spams with Spamassassin headers much like the one shown
below:
X-Spam-Status: Yes, hits=8.4 required=3.0
tests=AWL,DEAR_SOMETHING,FROM_ENDS_IN_NUMS,MIME_LONG_LINE_QP,
NIGERIAN_BODY,US_DOLLARS,US_DOLLARS_3
version=2.53
Is there a way to put each of the SA test headers in a file and have maildrop
filter on the contents of the file?
I would really recommend to check only on the spam status, not on
specific rules. Let SA do its job, or modify SA's rules if you don't
like them. You could also sort my spam level (untested):
if (/^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/)
{
to /dev/null
}
if (/^X-Spam-Status: YES/)
{
to $spambox
}
That would delete spam with scores of 10+ and would store mails with
lower spam level.
I want to have a list similar to this:
AWL
NIGERIAN BODY
US_DOLLARS_3
and then have maildrop delete all mails that have any of the listed headers.
Can I find examples of this somewhere?
It's possible though, I use something similar for my killfile:
- - - Schnipp - - -
# ~/.mutt/killfile.md
killfile = "$HOME/.mutt/plonk.names";
sender = getaddr($FROM)
if (lookup($sender, $killfile))
{
to $MAILDIR/admin/plonk
}
- - - Schnapp - - -
Adopt it to look for spam headers, not addresses.
Thorsten