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? I tried setting the ownership of the
scripts to vpopmail, playing with permissions.
I see the messages I send to [EMAIL PROTECTED] in the queue. (So, a related
qmail question: how do I tell what reason a message is in the queue?)
Thanks!
Quinn