diff options
| author | bwarsaw | 1999-12-14 16:27:05 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-12-14 16:27:05 +0000 |
| commit | b347e3cc6162f2ca57aa5f71a2d7aa1b0c3e79b5 (patch) | |
| tree | 188c13cb394aee51f65d719221e26518f35d6b5a /scripts | |
| parent | 609e35c242be0f3b71b2ac193711d50d6259a8ad (diff) | |
| download | mailman-b347e3cc6162f2ca57aa5f71a2d7aa1b0c3e79b5.tar.gz mailman-b347e3cc6162f2ca57aa5f71a2d7aa1b0c3e79b5.tar.zst mailman-b347e3cc6162f2ca57aa5f71a2d7aa1b0c3e79b5.zip | |
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/post | 4 |
1 files changed, 3 insertions, 1 deletions
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: |
