On Sunday 09 Feb 2003 5:12 am, Dennis Myers wrote: > I want spamassassin to log or put mail that it thinks is spam in a folder > in my kmail setup. I have given the command "spamassassin > --log-to-mbox=Spam" in a console but it doesn't seem to be doing the job. > Should I have used the -l switch first or just how does one get it to > filter and send to a particular folder? TIA for any help or suggestions.
The way I do it is to use a procmail recipe like this :- JUNKMAIL=/home/derek/Maildir/.junkmail/ #Run SpamAssasin :0fw | spamassassin -a -P :0e { EXITCODE=$? } :0: $LOCKFILE * ^Subject:.*\*\*\*\*SPAM\*\*\*\* $JUNKMAIL This recipe will pipe a mail through spamassassin. Any positive mails will have their 'Subject' line modified, and the recipe then puts all mails with modified subject into a spam mailbox. Alternatively if you use Kmail, you can configure filters to run spamassassin for you. This is explained in the spamassassin installation notes. You may find it at /usr/share/doc/spamassassin-2.41/INSTALL derek -- ---------------------------------- www.jennings.homelinux.net
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com