View Single Post
Old June 4th, 2007, 4:53 PM   #169 (permalink)
jdcopelin
Surpass Fan
Comfy Contributor
 
jdcopelin's Avatar
 
Joined in Feb 2004
Lives in Norfolk, England
Hosted on Pass32
166 posts
Gave thanks: 22
Thanked 19 times
Quote:
Originally Posted by kdanieli View Post
The script seems to be running, but all the SPAM folders still have all the spam in them.

It does not give me the confirmation email that counts how many items it processed. The confirmation emails all say this:

Learning SPAM
Learning HAM
Done
Quote:
learnspam
File Type: Bourne shell script text executable
_________________________________________________
#!/bin/sh
echo "Learning SPAM"
for FILE in `find $HOME -name SPAM -print`
do
echo "Processing $FILE"
sa-learn --spam --mbox $FILE
done

echo "Learning HAM"
for FILE in `find $HOME -name HAM -print`
do
echo "Processing $FILE"
sa-learn --ham --mbox $FILE
rm $FILE
touch $FILE
done
echo "Done"
Hi,

In another of your posts where you listed the contents of your ./mail folder you have maildir format when your learnspam script is written for mbox format. The script I posted in this thread should get you up and running (read my last post in that thread to correct the typo in the script). Please let us/me know if it works.
I am currently testing a new version of that script that is more intelligent and doesn't run sa-learn on empty folders.

Regards
Jonathan
__________________
Server: Pass32 and dedicated server
jdcopelin is offline   Reply With Quote