S
saschahb
Guest
hi all,
i've coded a script which makes it possible to all IMAP users to use the sa-learn function from spamassassin automatically...
It works like that:
Users have to create a SPAM and/or HAM folder within their root INBOX directory (via email client).
Now the users have to sort SPAM mails, which are not correctly identified as SPAM, to this SPAM folder.
And all mails which are identified as spam, but are no spam to the HAM folder.
The script runs for example every hour or once a day. It checks every SPAM and HAM folder for mails and uses sa-learn to learn the content.
SPAM mails will be deleted automatically after learnen (can be turned off within the script).
HAM mails will be moved back to the INBOX after learning so the user can sort the mails to another folder.
I hope that you'll like this script. Of course you can post any suggestions.
You just have to add this script to the root-crontab.
for example (at every full hour):
0 * * * * /usr/local/sbin/qauto-salearn
Source:
qauto-salearn perlscript
PS: There are some config parameter within the script. I use the script with debian 3.1 and Plesk 7.5.3
i've coded a script which makes it possible to all IMAP users to use the sa-learn function from spamassassin automatically...
It works like that:
Users have to create a SPAM and/or HAM folder within their root INBOX directory (via email client).
Now the users have to sort SPAM mails, which are not correctly identified as SPAM, to this SPAM folder.
And all mails which are identified as spam, but are no spam to the HAM folder.
The script runs for example every hour or once a day. It checks every SPAM and HAM folder for mails and uses sa-learn to learn the content.
SPAM mails will be deleted automatically after learnen (can be turned off within the script).
HAM mails will be moved back to the INBOX after learning so the user can sort the mails to another folder.
I hope that you'll like this script. Of course you can post any suggestions.
You just have to add this script to the root-crontab.
for example (at every full hour):
0 * * * * /usr/local/sbin/qauto-salearn
Source:
qauto-salearn perlscript
PS: There are some config parameter within the script. I use the script with debian 3.1 and Plesk 7.5.3