i've been using this for a while with my sa/tmda installation. it's kind
of specific to my needs, but with some tweaking other people might find
it useful.
kevin
--------------------------
#!/bin/sh
## am i on the right machine?
if [ x"$HOSTNAME" != xowsla ]; then
echo "Must run on owsla."
exit
fi
## are there any spams?
cd $HOME/.tmda/pending
spams=( *.msg )
if [ x"$spams" = "x*.msg" ]; then
echo "No spams found."
exit
fi
## process them in tmda.
tmda-pending $spams
## cleanup?
echo -n "Mark all remaining messages as spam [yn]: "
read response
case "$response" in
y*)
sa-learn --spam $spams
rm -f $spams
echo "Spams added to SA and deleted."
;;
*)
echo "Leaving messages alone."
esac
--------------------------
--
kevin lyda Every gun that is made, every warship launched,
[EMAIL PROTECTED] every rocket fired signifies, in the final
http://ie.suberic.net/~kevin/ sense, a theft from those who hunger and are
Dwight Eisenhower, 1953 ----> not fed, those who are cold and are not clothed.
_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users