# # author: Andrew Frederick Cowie # use only as directed, see your doctor if symptoms persist. # # Place as ~/bin/sa-learn, (not a good idea to replace /usr/bin/sa-learn) # Make sure you call Evolution with PATH=~/bin:$PATH /usr/bin/evolution # (ie, even if its in your shell path, if you have a launcher or key shortcut # you need to add the PATH thing above. My launchers look like # # sh -c 'PATH=~/bin:$PATH LANG=en_CA LC_TIME=en_GB /usr/bin/evolution' # echo "AfC: in sa-learn -> bogofilter wrapper" 1>&2 for option in $* do case "$option" in --spam) echo "AfC: learn as spam" 1>&2 MODE="-s" ;; --ham) echo "AfC: learn as ham" 1>&2 MODE="-n" ;; --rebuild) echo "AfC: rebuild called - will exit." 1>&2 exit 0 ;; *) echo "AfC: ignoring option $option" 1>&2 ;; esac done echo "AfC: executing bogofilter -v -l $MODE " 1>&2 exec bogofilter -v -l $MODE