View Single Post
Old October 19th, 2006, 3:15 PM   #83 (permalink)
grokdesigns
Registered User
Fresh Surpasser
 
Joined in Oct 2006
18 posts
Gave thanks: 5
Thanked 0 times
Well, this didn't work, now I just get:
Learning SPAM

Learning HAM
Done



Quote:
Originally Posted by grokdesigns View Post
So it would look like this?
Code:
#!/bin/sh
echo "Learning SPAM"
for FILE in `find $HOME -name .SPAM/ -print`
do
echo "Processing $FILE"
sa-learn --spam --mbox $FILE
rm $FILE
touch $FILE
done

echo " "
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"
Thanks for your help!
__________________
grokdesigns.com
Server Name: Pass65
grokdesigns is offline   Reply With Quote