sa-learn script

2006-07-11 Thread Nicholas Payne-Roberts
Does anybody know a good way to script sa-learn to daily check on junk e-mail folders? i'm currently trying the following line in a cron.daily script, but its throwing up an error: find /home/vpopmail/domains -name .Junk E-mail -exec sa-learn --showdots --spam cur {} \; Error: Learned

Re: sa-learn script

2006-07-11 Thread Chris Lear
* Nicholas Payne-Roberts wrote (11/07/06 11:58): Does anybody know a good way to script sa-learn to daily check on junk e-mail folders? i'm currently trying the following line in a cron.daily script, but its throwing up an error: find /home/vpopmail/domains -name .Junk E-mail -exec sa-learn

Re: sa-learn script

2006-07-11 Thread Nicholas Payne-Roberts
Thats fantastic, thanks very much Chris! Chris Lear wrote: * Nicholas Payne-Roberts wrote (11/07/06 11:58): Does anybody know a good way to script sa-learn to daily check on junk e-mail folders? i'm currently trying the following line in a cron.daily script, but its throwing up an error:

Re: sa-learn script

2006-07-11 Thread Theo Van Dinter
On Tue, Jul 11, 2006 at 12:13:22PM +0100, Chris Lear wrote: Does anybody know a good way to script sa-learn to daily check on junk e-mail folders? i'm currently trying the following line in a cron.daily script, but its throwing up an error: find /home/vpopmail/domains -name .Junk E-mail

Re: sa-learn script

2006-07-11 Thread Bart Schaefer
On 7/11/06, Nicholas Payne-Roberts [EMAIL PROTECTED] wrote: Does anybody know a good way to script sa-learn to daily check on junk e-mail folders? I use logrotate because it handles automatically removing or renaming the files after learning, but I don't use maildir-format folders so I can't

Re: sa-learn script

2006-05-26 Thread Bill Taroli
Paul Matthews wrote: ... what I want it to do is once it is marked as spam to move the e-mail from /var/spool/mail/user to $HOME/mail/Junk and same as marking it ham, move it from $HOME/mail/Junk to /var/spool/mail/user Can anyone tell me how-to do that? Well, the desire to do this is

sa-learn script

2006-05-25 Thread Paul Matthews
Hi there, i'm running RHEL4 with spamassassin-3.0.5-3.el4 and i'm looking for a script that will make sa-learn go though everyone's Junk mail folder and 'learn' what is Junk. i've come up with this #!/bin/bash for i in $( ls /home/MYDOMAIN); do sa-learn --spam /home/MYDOMAIN/i$/mail/Junk

Re: sa-learn script

2006-05-25 Thread Craig McLean
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Matthews wrote: Hi there, i'm running RHEL4 with spamassassin-3.0.5-3.el4 and i'm looking for a script that will make sa-learn go though everyone's Junk mail folder and 'learn' what is Junk. i've come up with this #!/bin/bash for i

Re: sa-learn script

2006-05-25 Thread Paul Matthews
Almost certainly not, unless you change that i$ to $i ;-) okay, say I do change it, will that script work? if i just add it in a cron job? Also, i'm using the squirrelmail plugin spam_button. http://www.squirrelmail.org/plugin_view.php?id=242 But what I want it to do is once it is marked as

Re: sa-learn script

2006-05-25 Thread Paul Matthews
Also, i'm using the squirrelmail plugin spam_button. http://www.squirrelmail.org/plugin_view.php?id=242 But what I want it to do is once it is marked as spam to move the e-mail from /var/spool/mail/user to $HOME/mail/Junk and same as marking it ham, move it from $HOME/mail/Junk to

Re: SA-Learn script

2004-10-02 Thread Thomas Bolioli
It is not fully tested yet but here it is. NB that I changed the USER env variable to USERNAME. I do not know if this is common on all flavors of linux but USER does not transliterate under su conditions to the child id but stays the parent. The var USERNAME does change to reflect the child

Re: SA-Learn script

2004-10-01 Thread Thomas Bolioli
This is exactly the kind of starting point I needed to get me to get in gear and write something similar for my system. For me however, I am using the std UWash based IMAP and a few other differences but the important difference/addition is that I want to automatically train my users emails

Re: SA-Learn script

2004-09-28 Thread Nix
On Thu, 23 Sep 2004, Rubin Bennett said: I've written a bash script that takes will run sa-learn against the administrator specified False-Postive and False-Negative folders. Functionality-irrelevant pedant point: #!/bin/bash # Copyright (c) 2004 by Rubin Bennett [EMAIL PROTECTED] # All

SA-Learn script

2004-09-23 Thread Rubin Bennett
Hello all... I figure I've asked enough questions of this list that it's about time I gave something back... You may not want it,but here it is anyway :) I've written a bash script that takes will run sa-learn against the administrator specified False-Postive and False-Negative folders. Run this