X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=learn_from_spam;fp=learn_from_spam;h=88545f85dbb848ff9d714fa6b94f8fe29add8c1d;hb=a7b352ce04953180a3a53890dddea820c2dabaed;hp=96f9bd97400a81e2934f21e74019815ab600a8e2;hpb=17791dec603f2901ce688868189a03289dd62677;p=bin.git diff --git a/learn_from_spam b/learn_from_spam index 96f9bd9..88545f8 100755 --- a/learn_from_spam +++ b/learn_from_spam @@ -15,9 +15,9 @@ if [ "$(basename $0)" = "learn_from_spam" ]; then $SPAM_REPORT < "$file" >/dev/null; grep -e '^From ' -e 'From: ' "$file" | spamassassin -R >/dev/null; # check to see if it's still spam - if ! spam -c < "$file"; then + if ! spamc -c < "$file"; then # this message is still not spam; may need custom rules - cp "$file" ~/Mail/spam/needs_rules/cur/; + cp "$file" ~/Maildir/spam/needs_rules/cur/; fi; done; elif [ "$(basename $0)" = "learn_from_ham" ]; then