On Sun, 4 Mar 2007, Mário Gamito wrote:
I use Maildir, therefore i din't have a single file for sa-learn to act upon
Sure you do. Each message is a single file. Just run: for msg in /var/spool/spam/*; do sa-learn --spam /var/spool/spam/${msg} done Or, if you really wanted to make a single text file, it's not that hard: rm /tmp/spam.txt for msg in /var/spool/spam/*; do cat /var/spool/spam/${msg} >> /tmp/spam.txt done sa-learn --spam /tmp/spam.txt I'd recommend giving the sa-learn man page a good read; there's lots of good stuff in there. If you want to do per-user learning, you'll have to grab the ReSent-From: header out of each message, but that's pretty trivial. Chris St. Pierre Unix Systems Administrator Nebraska Wesleyan University ---------------------------- Never send mail to [EMAIL PROTECTED]