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 --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss