aboutsummaryrefslogtreecommitdiffstats
path: root/learn-spam
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-05-16 01:27:31 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-05-16 01:27:31 +0200
commit668753b7a2cde64a7a5ee424bc115d6e054efb68 (patch)
tree2a12b7575d9e7107a182f9717a76fd084a31d58f /learn-spam
parent946f03bb0e69f9de042aedab5362278227b88b93 (diff)
downloadbin-668753b7a2cde64a7a5ee424bc115d6e054efb68.tar.xz
Add learn-{ham,spam}
Two spambayes wrappers that uploads to theos
Diffstat (limited to 'learn-spam')
-rwxr-xr-xlearn-spam6
1 files changed, 6 insertions, 0 deletions
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