]> git.donarmstrong.com Git - bin.git/commitdiff
fix spamc invocation
authorDon Armstrong <don@donarmstrong.com>
Tue, 25 Feb 2014 22:59:18 +0000 (14:59 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 25 Feb 2014 22:59:18 +0000 (14:59 -0800)
learn_from_spam

index d061e45a72f64a768a92e8206a78b8aa270c0484..7a9ac934ae6c9e580fb81261a12741686b09c88e 100755 (executable)
@@ -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