On 07/29/2004 09:27 pm, Thorsten Haude wrote:
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
}
I was thinking of trying just that type of filter but was not sure that I
could use escapes with asterisks. It would be even better than listing the
filters in a file.
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
}
Thanks, I will use that example and see what I come up with.
8)