Quinn Comendant wrote:
I'm trying to create an alias that pipes a message to sa-learn. I've created 
the alias:

[EMAIL PROTECTED]/1 ~]$valias -s strangecode.com | grep spam
[EMAIL PROTECTED] -> |sa-learn --ham --no-sync
[EMAIL PROTECTED] -> |sa-learn --spam --no-sync


That didn't work, so I tried this:

[EMAIL PROTECTED]/1 ~]$valias -s strangecode.com | grep spam
[EMAIL PROTECTED] -> |/root/bin/learnham
[EMAIL PROTECTED] -> |/root/bin/learnspam
Sorry, I replied to you on the vpopmail mailing list. The maildrop and qmailadmin package have been modified so that you can use the automatic spam detection flag to learn SPAM from. When you recompile these packages, include the flag:
--define 'spambox 1'
and you will see a check box in qmailadmin that allows you to turn on spam detection. What this does is run that user's mail through the /etc/mail/mailfilter script, which will learn from spam that scores above 15 or so (don't remember what the default score is) as well as put it in the user's spam folder. If you want to use the separate email addresses like you listed above, leave them as valid email addresses and run a script on them in the background with cron, something like this: /usr/bin/sa-learn --spam /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/cur/*
rm -rf /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/cur/*
/usr/bin/sa-learn --spam /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/new/*
rm -rf /home/vpopmail/domains/v2gnu.com/jake/Maildir/.Spam/new/*


And then do the same thing for your ham mails, but use the --ham flag instead of the --spam flag for sa-learn.

---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to