spamassassin noob question
Gerard J Snitselaar
snits at snitselaar.org
Fri Sep 22 22:53:26 MST 2006
I didn't find anything online, so I guess the easiest thing
to do is use a script to capture the output and echo it
back into the file. It seems to work okay.
something along the lines of:
cd target-mail-dir
for i in *
do
o=`spam-cmd < "$i"`
echo "$o" > "$i"
done
cd orig-dir
exit
Where spam-cmd is some form of spamc or spamassassin.
A bit kludgy, but allows me to go back and mark spam for
removal from archived emails from mailing lists that I
subscribe to.
PWD=`/bin/pwd`
if [[ $# -ne 1 ]];
then
echo "usage: ${0} target-dir"
exit 1
fi
cd ${1}
for i in *
do
echo "checking ${i} ..."
o=`/usr/bin/spamc -u spamd < "${i}"`
echo "${o}" > "${i}"
done
cd ${PWD}
exit 0
More information about the PLUG-discuss
mailing list