Mauro Torrez 82a3237b0a
All checks were successful
continuous-integration/drone/push Build is passing
try fixing antispam learning
2020-02-04 12:14:54 -03:00

14 lines
204 B
Bash
Executable File

#!/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