From: Don Armstrong Date: Wed, 12 Feb 2014 17:15:47 +0000 (-0800) Subject: add learn from ham and learn from spam X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=526b1ebb27a76a4dd565b6e023415603fc7cab4b;p=bin.git add learn from ham and learn from spam --- diff --git a/learn_from_ham b/learn_from_ham new file mode 120000 index 0000000..6c4a60a --- /dev/null +++ b/learn_from_ham @@ -0,0 +1 @@ +learn_from_spam \ No newline at end of file diff --git a/learn_from_spam b/learn_from_spam new file mode 100755 index 0000000..92615ba --- /dev/null +++ b/learn_from_spam @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ $0 eq "learn_from_spam" ]; then + for file in "$@"; do + spamassassin -r < "$file"; + spamassassin -R < "$file"; + done; +elif [ $0 == "learn_from_ham" ]; then + for file in "$@"; do + spamassassin -k < "$file"; + spamassassin -W < "$file"; + done; +fi;