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