--- Mailman/Handlers/ToUsenet.py.orig Mon Feb 14 15:12:39 2000 +++ Mailman/Handlers/ToUsenet.py Tue Mar 21 15:15:57 2000 @@ -23,6 +23,10 @@ from Mailman.pythonlib.StringIO import StringIO +# The version we have is from Python 1.5.2+ and fixes the "mode reader" +# problem. +from Mailman.pythonlib import nntplib + def process(mlist, msg): @@ -123,7 +127,7 @@ # flatten the message object, stick it in a StringIO object and post # that resulting thing to the newsgroup fp = StringIO(str(msg)) - conn = nntplib.NNTP(mlist.nntp_host) + conn = nntplib.NNTP(mlist.nntp_host, readermode=1) try: try: conn.post(fp)