On Sat, Jan 19, 2002 at 12:44:10AM -0500, mike castleman wrote:
> 2) And, for when false positives do occur, has anyone yet hacked up a
>    mutt macro for running the message through spamassassin -d and
>    moving the message to another folder?

So, there might be some prettier way, but here's what I ended up
doing:

Pick some kind of magic string, that spammers are not likely to put in
the headers of their emails. I used the sha1 hash of my hostname, but
probably just writing anything would work.

Modify your .procmailrc such that spamassassin doesn't get called when
your magic string is in the header, viz.:

:0fw
* !^X-Not-Spam: your-magic-string
| spamassassin -P

And now add the following horrendously long line to your muttrc:

macro   index   \cs     "|spamassassin -d | formail -i 'X-Not-Spam: your-magic-string' 
| procmail\n<delete-message>" "Un-SpamAssassin a message"

Now, when you're in your caught-spam folder, you can press ^S to take
a false positive, remove the spamassassin report, and direct it to its
proper location.

mike

-- 
mike castleman / [EMAIL PROTECTED] / http://mlcastle.net / (646) 382-7220
current location: columbia university, new york, ny, us
get DeCSS now: http://www.columbia.edu/~mlc67/css.html

Attachment: msg00241/pgp00000.pgp
Description: PGP signature

Reply via email to