Quote:
Originally Posted by kdanieli
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