From: Don Armstrong Date: Fri, 21 Feb 2014 19:10:34 +0000 (-0800) Subject: add recheck spam X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=073014a0baac97cab7c6a7dd20b2cc54279bcea8;p=bin.git add recheck spam --- diff --git a/recheck_spam b/recheck_spam new file mode 100755 index 0000000..fa08029 --- /dev/null +++ b/recheck_spam @@ -0,0 +1,15 @@ +#!/bin/bash + +# these are for non-spamc setups +SPAM_REPORT="spamassassin --report" +HAM_REPORT="spamassassin --revoke" +SPAM_CHECK="spamassassin -e" + +# these are for spamc +SPAM_REPORT="spamc --learntype=spam" +HAM_REPORT="spamc --learntype=ham" +SPAM_CHECK="spamc -c" + +for file in "$@"; do + spamc < "$file" |sponge "$file" 2>/dev/null; +done;