Hi Gordon,
> Wouldn't it be easier to just build the mbox file using the contents
> of the archivedir?
I already have a script doing this job. Yes, it quite easy, but I have
to do spam and virus scanning again.
This is the script I've written, not perfect, but works. Maybe someone
here has a idea to improve this?
#!/bin/bash
bbdir="/var/lib/courier/archive/"
echo "Converting "$bbdir
for i in `find $bbdir -type f`; do
cat ${i} | \
/usr/bin/dspam --user mail --mode=notrain \
--deliver=innocent,spam --stdout | \
/usr/bin/reformail -f1 >1
if grep -q -m 1 "^X-DSPAM-Result: Spam" 1 ; then
if grep -q -m 1 -e "^X-DSPAM-Confidence: 0\.[8|9]" 1 ; then
echo "Spam"
else
cat 1 >> mbox
fi
else
cat 1 >> mbox
fi
done
--
http://tam.belchenstuermer.de/
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users