procmail
[Top] [All Lists]

Re: sending spam to /dev/null

2005-07-24 14:13:48
On Sun, 24 Jul 2005, Chris wrote:

This is probably a very dumb question, but here goes.  I'll be going on
vacation in about a month and instead of coming back to a spam folder full of
a couple of thousand messages I'd just like to not even have them tossed into
the spam folder. I currently have this in my .procmailrc file:

:0
* ^X-Spam-Flag: YES
$JUNKMAIL

Would just changing the $JUNKMAIL to /dev/null drop all spam into a black
hole? I checked the examples man page and the others, did find one example
where /dev/null was used in a linuxgazette article, but want to make sure
this is the correct way.

Yes, it is.  I do the following (after scanning with SpamAssassin):

:0:
* ^X-Spam-Status: Yes
* autolearn=spam
/dev/null

:0:
* ^X-Spam-Status: Yes
junk

This blackholes the definite spam (stuff that was so obviously spam that 
SA auto-trained the bayes database on it) and saves the probable spam to 
my junk folder.  About 2/3 of my spam ends up being sent directly to 
/dev/null this way.  (I did this originally because reviewing the 
junk-mail folder had become too much of a chore.  Since you have exactly 
the same concern, I expect you'll like this solution.)

Damian Menscher
-- 
-=#| Physics Grad Student & SysAdmin @ U Illinois Urbana-Champaign |#=-
-=#| 488 LLP, 1110 W. Green St, Urbana, IL 61801 Ofc:(217)333-0038 |#=-
-=#| 4602 Beckman, VMIL/MS, Imaging Technology Group:(217)244-3074 |#=-
-=#| <menscher(_at_)uiuc(_dot_)edu> www.uiuc.edu/~menscher/ Fax:(217)333-9819 
|#=-
-=#| The above opinions are not necessarily those of my employers. |#=-

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail