<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I believe I have found a bug in the 2.1b4 checkdbs
module in </FONT></DIV>
<DIV><FONT face=Arial size=2>mailman/pythonlibs/email/</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Original section of code</FONT></DIV>
<DIV><FONT face=Arial size=2>------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>import sys<BR>import time<BR>from types import
UnicodeType<BR>from email.Charset import Charset</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>import paths<BR># mm_cfg must be imported before
the other modules, due to the side-effect of<BR># it hacking sys.paths to
include site-packages. Without this, running this<BR># script from cron
with python -S will fail.<BR>from Mailman import mm_cfg<BR>from Mailman import
Utils<BR>from Mailman import MailList<BR>from Mailman import Message<BR>from
Mailman import i18n</FONT></DIV>
<DIV><FONT face=Arial
size=2>-------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>Notice the "from email.Charset import
Charset" before the "import paths"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Moving the "from email.Charset ..." after the
"import paths" eliminated the error</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The code section now reads as follows:</FONT></DIV>
<DIV><FONT face=Arial
size=2>-----------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>import sys<BR>import time<BR>from types import
UnicodeType</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>import paths<BR>from email.Charset import
Charset<BR># mm_cfg must be imported before the other modules, due to the
side-effect of<BR># it hacking sys.paths to include site-packages. Without
this, running this<BR># script from cron with python -S will fail.<BR>from
Mailman import mm_cfg<BR>from Mailman import Utils<BR>from Mailman import
MailList<BR>from Mailman import Message<BR>from Mailman import
i18n<BR>-----------------------------------------------------------------</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>