Bigjohn- thanks for all the information you have provided here! I am having a little trouble getting the script to work, in fact the same problem that grokdesigns was having that he mentioned back on page 6. I contacted him to see if he figured anything out about it but he hadn't yet.
The problem is when the script ran, I had the following e-mailed to me:
Learning SPAM
Learning HAM
Done
So I decided to check /home/(user)/mail/(domain)/aaron/ to see if the SPAM and HAM folders were listed there. They were, but they, and every other folder, had a dot "." in front of them. So they were .SPAM and .HAM. So in the script, I decided to add a dot in front of the folder names, and when the script ran this is the result that I received:
Learning SPAM
Processing /home/(user)/mail/(domain)/aaron/.SPAM
Learned tokens from 0 message(s) (0 message(s) examined)
Learning HAM
Processing /home/(user)/mail/(domain)/aaron/.HAM
Learned tokens from 0 message(s) (0 message(s) examined)
rm: cannot remove `/home/(user)/mail/(domain)/aaron/.HAM': Is a directory
Done
I do have messages in both the SPAM and HAM folders. I'm not sure why exactly it isn't working, but I would appreciate any help!
