From: Gerald V. Livingston II [mailto:[EMAIL PROTECTED] > > sa-learn -- anyone have a way to stat() all the SPAM folders and run > sa-learn only on those that have new messages added by customers? I could > find them using 'find' by searching on the mod date but I'd have to have > some way for sa-learn to know the username to run as.
What I would do is this: - Use a 'find' command to find all the new messages. - Extract a unique list of spam folders with new messages. - Run 'sa-learn' on each of those folders. - Remove the learned messages (delete or move to another location). The last step is important. You don't want sa-learn to have to go through 50 old messages just to find the new one. Bowie