Antony Gelberg wrote:
Hi all,

I currently use fetchmail and procmail to get and sort my mail.  I'd
like to use spamassassin as well, however when I add
:0fw: spamassassin.lock
| /usr/bin/spamassassin
to my .procmailrc, it works ok, but then the mail gets delivered to
/var/mail/<username>, rather than following the rest of my procmail
recipes.

Any ideas on how to alter this behaviour?

A




:0fw
# Or, use spamd and spamd, which is a lot nicer to your machine
# under heavy load:
#|/usr/bin/spamc -s 500000 -d <host> -p 783
| /usr/bin/spamassassin -P

:0:
* ^X-Spam-Status: Yes
.spam/


...might work better. The pipe to spamassassin just tags the mail, the second rule is what actually delivers the message. Depending on the version of spamassassin, the -P flag is not needed any more (my 2.55 install's man page says that pipe to stdout is default behavior).


You could also sort based on the level of "spamminess":


#Sort into spam folders based on "spamminess". Folder names # have leading number so that Netscape sorts them correctly. :0: * ^X-Spam-Status: Yes #.spam/ { :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* .spam.4-very-spammy/


:0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\* .spam.3-pretty-spammy/

   :0:
   * ^X-Spam-Level: \*\*\*\*\*\*
   .spam.2-somewhat-spammy/

   :0:
   .spam/
}


#Drop potential FN here: :0: * ^X-Spam-Level: \*\*\*\* .spam.1-slightly-spammy/



--Rich

_________________________________________________________

Rich Puhek
ETN Systems Inc.
2125 1st Ave East
Hibbing MN 55746

tel:   218.262.1130
email: [EMAIL PROTECTED]
_________________________________________________________


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to