7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] filtering on Spamassa...
FromSent OnAttachments
PollywogJul 28, 2004 6:46 pm 
Michael BrennenJul 28, 2004 7:07 pm 
Ron JohnsonJul 28, 2004 7:14 pm 
Thorsten HaudeJul 29, 2004 2:30 pm 
PollywogJul 29, 2004 4:28 pm 
Ron JohnsonJul 30, 2004 1:57 am 
Thorsten HaudeJul 30, 2004 10:10 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] filtering on Spamassassin headersActions...
From:Thorsten Haude (list@thorstenhau.de)
Date:Jul 29, 2004 2:30:41 pm
List:net.sourceforge.lists.courier-maildrop

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