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:Pollywog (lin@shadypond.com)
Date:Jul 29, 2004 4:28:40 pm
List:net.sourceforge.lists.courier-maildrop

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)