From 073014a0baac97cab7c6a7dd20b2cc54279bcea8 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 21 Feb 2014 11:10:34 -0800 Subject: [PATCH] add recheck spam --- recheck_spam | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 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; -- 2.39.2