try fixing antispam learning
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-02-04 12:14:54 -03:00
parent bf8230f935
commit 82a3237b0a
3 changed files with 21 additions and 10 deletions

13
mailtrain Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# train the spam filter.
# arg 1 - spam or ham
if [ "$1" == "ham" ]; then
/usr/bin/bogofilter -e -p -Sn
exit 0
fi
if [ "$2" == "spam" ]; then
/usr/bin/bogofilter -e -p -Ns
exit 0
fi