Does anybody know a good way to script sa-learn to daily check on junk e-mail folders? i'm currently trying the following line in a cron.daily script, but its throwing up an error:

find /home/vpopmail/domains -name ".Junk E-mail" -exec sa-learn --showdots --spam cur {} \;

Error:

Learned tokens from 0 message(s) (0 message(s) examined)
archive-iterator: unable to open cur: No such file or directory

I'm using vpopmail as you can see, and each user has a .Junk E-mail folder under their Maildir.

Many thanks,

Nick Payne-Roberts

Reply via email to