diff options
| author | bwarsaw | 2000-03-21 06:43:04 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-03-21 06:43:04 +0000 |
| commit | aee5ca79586515dd242ba3b441e92ebec11c7b87 (patch) | |
| tree | 7c51f4266a7749b34fa54462c53bb8873be673ec /Mailman | |
| parent | 0f975344c5e8b50ec520ea1b349211a6cef94efa (diff) | |
| download | mailman-aee5ca79586515dd242ba3b441e92ebec11c7b87.tar.gz mailman-aee5ca79586515dd242ba3b441e92ebec11c7b87.tar.zst mailman-aee5ca79586515dd242ba3b441e92ebec11c7b87.zip | |
do_child(): set reader mode when creating the NNTP connection.
Jim Tittsler writes:
Posting also requires the server to be in 'mode reader' (at least
our INN does). I think you only updated the cron/gatenews...
Diffstat (limited to 'Mailman')
| -rw-r--r-- | Mailman/Handlers/ToUsenet.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mailman/Handlers/ToUsenet.py b/Mailman/Handlers/ToUsenet.py index 5e59a211c..58dd31460 100644 --- a/Mailman/Handlers/ToUsenet.py +++ b/Mailman/Handlers/ToUsenet.py @@ -23,6 +23,10 @@ import re 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 @@ def do_child(mlist, msg): # 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) |
