X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=learn_from_spam;h=63cb9f8789b1fa4f32934bb2942ce6d97c490a76;hb=c415a1ba1aeca58b537ccd13176ce6968f834091;hp=a6cac9306f43f953e87a1592bdf37e6b6530e884;hpb=ff03d34c2f80aaf944a747ec0dce6d8b73f084ec;p=bin.git diff --git a/learn_from_spam b/learn_from_spam index a6cac93..63cb9f8 100755 --- a/learn_from_spam +++ b/learn_from_spam @@ -18,7 +18,9 @@ if [ "$(basename $0)" = "learn_from_spam" ]; then for file in "$@"; do if ! formail -c < "$file"|grep -q '^List-Id'; then $SPAM_REPORT < "$file" >/dev/null 2>&1; - fi; + else + spamasssin --local --report < "$file" >/dev/null 2>&1; + fi formail -c < "$file" | grep -e '^From ' -e 'From: ' | spamassassin --add-to-blacklist >/dev/null 2>&1; formail -c < "$file" | grep -e '^From ' -e 'From: ' | spamassassin --remove-from-whitelist >/dev/null 2>&1; # check to see if it's still ham