#!/bin/sh

cat > bogofilter.cf <<EOF
charset_default=iso-8859-1
EOF

rm -f ./wordlist.db

for LANG in C de_DE.UTF-8 de_DE@euro; do
    LC_CTYPE=de_DE@euro
    echo LANG: $LANG, LC_CTYPE: $LC_CTYPE
    export LANG LC_CTYPE
    bogofilter -c bogofilter.cf -d . -n -v < problem.msg
    bogofilter -c bogofilter.cf -d . -s -v < problem.msg
    bogofilter -c bogofilter.cf -d . -v < problem.msg
    ls -l *.db
    echo
done
