The 2004-03-12 at 10:31 -0800, Tom Nielsen wrote:
I'm wondering if I can label an email as spam after spamassassin checks it. I read where I should put in my .procmailrc the following:
* ^X-Spam-Status: Yes
spam
Will this send an email to me with a "spam" notice?
No. The above has incorrect sintaxis. Assuming the email has already passed through SpamAssassin, this rule: :0 * ^X-Spam-Status: Yes spam will forward mail to a user named "spam" on your system. The complete rule would be something like this (in /home/user/.procmailrc file) :0fw: spamassassin.lock * < 50000 | /usr/bin/spamc :0 a * ^X-Spam-Status: Yes :0 $HOME/Mail/in_spam That rule is prepared for a system low in memory or otherwise slow; it will scan mails, and then move those marked with the "X-Spam-Status: Yes" header to a folder, in my case, "$HOME/Mail/in_spam". It needs service "rcspamd" to have been started previously by root or on boot. More info: man procmailex sources of Mail-SpamAssassin or directory /usr/share/doc/package/SpamAssassin, files: ./spamd/README.spamd ./spamd/suse-rc-script.sh ---> rcspamd ./USAGE ./procmailrc.example And there is also a line to obtain help from perl itself, but I forgot which it was. -- Cheers, Carlos Robinson