]> git.donarmstrong.com Git - bin.git/commitdiff
add ham_report
authorDon Armstrong <don@donarmstrong.com>
Tue, 18 Jul 2017 01:41:24 +0000 (18:41 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 18 Jul 2017 01:41:24 +0000 (18:41 -0700)
ham_report [new file with mode: 0755]

diff --git a/ham_report b/ham_report
new file mode 100755 (executable)
index 0000000..91f603f
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# these are for spamc
+HAM_REPORT="spamc --learntype=ham"
+
+for file in "$@"; do
+    $HAM_REPORT < "$file" >/dev/null 2>&1;
+done
+