add antispam support using imap sieve
This commit is contained in:
13
spamtrain.sh
Executable file
13
spamtrain.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# train the spam filter
|
||||
# arg 1 - spam or ham
|
||||
|
||||
if [ "$1" == "ham" ]; then
|
||||
/usr/bin/bogofilter -d /vmail/bogofilter -e -p -Sn
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == "spam" ]; then
|
||||
/usr/bin/bogofilter -d /vmail/bogofilter -e -p -Ns
|
||||
exit 0
|
||||
fi
|
||||
Reference in New Issue
Block a user