> 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 > /var/spool/mail/user > > Can anyone tell me how-to do that?
I've slightly changed the script I was using, can anyone tell me: if it will still work? if it will work better, worse or no change? Am I missing anything in the script that should be there? I notice i the --help option for sa-learn there is a --sync is that something I have to do after this script has run? #!/bin/bash for i in $( ls /home/MYDOMAIN); do sa-learn -p /home/MYDOMAIN/$i/.spamassassin/user_prefs -u [EMAIL PROTECTED] --siteconfigpath=/etc/mail/spamassassin --mbox --spam /home/MYDOMAIN/$i/mail/Junk sa-learn -p /home/MYDOMAIN/$i/.spamassassin/user_prefs -u [EMAIL PROTECTED] --siteconfigpath=/etc/mail/spamassassin --mbox --ham /var/spool/mail/$i done