diff options
Diffstat (limited to 'z-distfiles/scripts-gw-1.1/spam-report')
-rwxr-xr-x | z-distfiles/scripts-gw-1.1/spam-report | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/z-distfiles/scripts-gw-1.1/spam-report b/z-distfiles/scripts-gw-1.1/spam-report new file mode 100755 index 0000000..fe67e05 --- /dev/null +++ b/z-distfiles/scripts-gw-1.1/spam-report @@ -0,0 +1,22 @@ +#!/bin/bash + +if [ -d "${1}" ] + then + MAILS="`ls ${1}`" + if [ ! -z "${MAILS}" ] + then + for MAIL in "${MAILS}" + do + echo "Report ${1}/${MAIL}" + spamassassin -r < "${1}/${MAIL}" + echo "Delete ${1}/${MAIL}" + rm "${1}/${MAIL}" + done + fi + if [ -z "${MAILS}" ] + then + echo "Nothing in ${1} to report!" + fi +fi + + |