aboutsummaryrefslogtreecommitdiffstats
path: root/learn-ham
blob: cbc035db06cdab0128293bfcba7fff2efe86bfbc (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

if ! [[ -n "$MAILDIR" ]]; then
	printf '%s\n' 'warning: $MAILDIR not set, falling back to $HOME/mail'
	MAILDIR="$HOME"/mail
fi

sb_mboxtrain.py -d "$MAILDIR"/spambayes.db -g "$MAILDIR"/learn-ham -r
rsync "$MAILDIR"/spambayes.db \
      kyrias@theos.kyriasis.com:Mail/spambayes.db \
      --update --checksum --human-readable --progress