This script goes hand in hand with the spamassassintrainer (you'll find it in my website).
After finding that the number of users using my email server was groing i had to find a better way of running the trainer script, a more efficient way, so that my server does to get bogged down when 10 users start running the trainer at the same time. So this script was devised to run the trainer for specific users in my server, every 2 hours.
This saved a lot of work for me, adding a new cron job for every new user and stopped my server slowing down every hour.
Its a very simple script, and works very well.
Set cron up so that it runs this script every 2 hours:
0 */2 * * * /usr/bin/spamassassintrainerForAll.sh >/dev/null 2>&1