by: Brooks Swinnerton on November 12, 2008
| Posted in: Blog > Technology
Just in case you were looking for a script that would do it, here is something I wrote that will scan all of your users junk folders and then have spamassassin learn them as spam!
Just create a new file in /bin and name it something like sa_learn. Then once you have pasted the following into it, chmod o+x and you're all set!
#!/bin/bash
/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn --spam /var/www/web*/user/*/Maildir/.Junk/curKeywords: Spam, ISPConfig, Roundcube, spamassassin, spam