On Sunday 24 July 2005 04:04 pm, Damian Menscher wrote:
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
Thanks Damian, I'll do it then. However, just a question, you have two
recipes, one that on X-Spam-Status: Yes autolearns then sends spam
to /dev/null the other on X-Spam-Status: Yes sends spam to your junk folder,
doesn't the first recipe cancel out the 2nd? Or am I a bit confused here?
--
Chris
Registered Linux User 283774 http://counter.li.org
16:08:58 up 17:10, 2 users, load average: 0.09, 0.27, 0.27
Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you can't change the rules, then ignore them
-- Anti- Murphy's Laws n°10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
____________________________________________________________
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