aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlearn-ham6
-rwxr-xr-xlearn-spam6
2 files changed, 12 insertions, 0 deletions
diff --git a/learn-ham b/learn-ham
new file mode 100755
index 0000000..6532dd7
--- /dev/null
+++ b/learn-ham
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+sb_mboxtrain.py -d "$MAIL"/spambayes.db -g "$MAIL"/learn-ham -r
+rsync "$MAIL"/spambayes.db \
+ kyrias@theos.kyriasis.com:Mail/spambayes.db \
+ --update --checksum --human-readable --progress
diff --git a/learn-spam b/learn-spam
new file mode 100755
index 0000000..6afbb55
--- /dev/null
+++ b/learn-spam
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+sb_mboxtrain.py -d "$MAIL"/spambayes.db -s "$MAIL"/learn-spam -r
+rsync "$MAIL"/spambayes.db \
+ kyrias@theos.kyriasis.com:Mail/spambayes.db \
+ --update --checksum --human-readable --progress