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


And those scripts are something like:

[EMAIL PROTECTED]/1 ~]$cat /root/bin/learnham 
#!/bin/sh
sa-learn --spam --no-sync -D &> /tmp/learnspam.log

And they work fine is fed spam directly...

[EMAIL PROTECTED]/1 ~]$bin/learnspam <<EOF
>...spam here...
>EOF

[EMAIL PROTECTED]/1 ~]$head /tmp/learnspam.log
[8532] dbg: logger: adding facilities: all
...
Learned tokens from 1 message(s) (1 message(s) examined)


So I assume I setup the aliases wrong? Do the scripts need to be owned by 
vpopmail or something?

Thanks!
Quinn

---------------------------------------------------------------------
     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