]> git.donarmstrong.com Git - bin.git/commitdiff
fix maildir location
authorDon Armstrong <don@donarmstrong.com>
Fri, 14 Feb 2014 00:17:52 +0000 (16:17 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 14 Feb 2014 00:17:52 +0000 (16:17 -0800)
learn_from_spam

index 96f9bd97400a81e2934f21e74019815ab600a8e2..88545f85dbb848ff9d714fa6b94f8fe29add8c1d 100755 (executable)
@@ -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