From b347e3cc6162f2ca57aa5f71a2d7aa1b0c3e79b5 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 14 Dec 1999 16:27:05 +0000 Subject: Must read stdin into a StringIO object so that its seekable, since Message.Message requires this. --- scripts/post | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/post b/scripts/post index b8e676ef8..b6133247a 100755 --- a/scripts/post +++ b/scripts/post @@ -33,6 +33,7 @@ from Mailman import Errors from Mailman import Utils from Mailman.Logging.Utils import LogStdErr from Mailman.Handlers import HandlerAPI +from Mailman.pythonlib.StringIO import StringIO LogStdErr("error", "post") @@ -53,7 +54,8 @@ def main(): except: pass if msg is None: - msg = Message.Message(sys.stdin) + s = StringIO(sys.stdin.read()) + msg = Message.Message(s) # go ahead and post the message adminaddr = mlist.GetAdminEmail() try: -- cgit v1.3.1