Re: Bug#317524: bogofilter-bdb: seems to be stuck in an endless loop
David Relson <[email protected]> Tue, 2 Aug 2005 21:25:26 -0400
| Newsgroups | gmane.mail.bogofilter.devel |
|---|---|
| Organization | Osage Software Systems, Inc. |
| Message-ID | <[email protected]> |
On Tue, 2 Aug 2005 15:35:02 -0400 Clint Adams wrote: > > >Okay. What if you comment out the charset_default line in your config? > > > > When I do this, bogofilter doesn't end up in the endless loop anymore > > and seems to work as it should. > > [Additional information at http://bugs.debian.org/317524 ] > > There is apparently a problem if charset_default is set to iso-8859-1 . > I have not attempted to reproduce this yet. Hello Torsten & Clint, From the bug description, the problem should be demonstrable with a script like the one attached and an appropriate message file. The combination of attached script & message work fine for me. Knowing the exact bogofilter command run at the time of the loop and having the message being processed would be very helpfu. Can you provide missing pieces so I can reproduce the problem? Bogofilter's use of iconv() has some special handling for characters that don't belong in the "from" charset. Early on in the development of the iconv code there were problems with that special handling, though I don't recall an infinite loop such as you've experienced. My suspicion is that you may have encountered a similar problem. By the way, what does "bogofilter -V" say? Thanks, David _______________________________________________ Bogofilter-dev mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
problem.msg
(text/plain, 127 B)
From: [email protected] Tue Mar 25 20:11:29 2003 Subject: iso-8859-1 problem To: [email protected] this is a test
problem.sh
(text/plain, 437 B)
#!/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