From 72b4e4387c677189121e932caed87ba2294c8bc3 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 25 Feb 2014 14:59:18 -0800 Subject: [PATCH] fix spamc invocation --- learn_from_spam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/learn_from_spam b/learn_from_spam index d061e45..7a9ac93 100755 --- a/learn_from_spam +++ b/learn_from_spam @@ -17,7 +17,7 @@ if [ "$(basename $0)" = "learn_from_spam" ]; then # check to see if it's still spam if ! $SPAM_CHECK < "$file" >/dev/null 2>&1; then # this message is still not spam; may need custom rules - spamc "$file" > ~/Maildir/spam/needs_rules/cur/"$(basename "$file")" 2>/dev/null; + spamc < "$file" > ~/Maildir/spam/needs_rules/cur/"$(basename "$file")" 2>/dev/null; fi; done; elif [ "$(basename $0)" = "learn_from_ham" ]; then @@ -26,7 +26,7 @@ elif [ "$(basename $0)" = "learn_from_ham" ]; then formail -c < "$file" |grep -e '^From ' -e 'From: ' -e 'To: ' -e 'Cc: '|spamassassin -W >/dev/null 2>&1; if $SPAM_CHECK < "$file" >/dev/null 2>&1; then mkdir -p ~/Maildir/spam/needs_ham_rules/cur; - spamc "$file" > ~/Maildir/spam/needs_ham_rules/cur/"$(basename "$file")" 2>/dev/null; + spamc < "$file" > ~/Maildir/spam/needs_ham_rules/cur/"$(basename "$file")" 2>/dev/null; fi; done; else -- 2.39.2