16 lines
247 B
Bash
Executable File
16 lines
247 B
Bash
Executable File
#!/bin/bash
|
|
# train the spam filter
|
|
# arg 1 - spam or ham
|
|
|
|
if [ "$1" == "ham" ]; then
|
|
/usr/bin/bogofilter -d /vmail/bogofilter -p -Sn
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$1" == "spam" ]; then
|
|
/usr/bin/bogofilter -d /vmail/bogofilter -p -Ns
|
|
exit 0
|
|
fi
|
|
|
|
exit 1
|