
On Fri, Dec 10, 1999 at 08:46:28AM -0500, Barry A. Warsaw wrote:
"RK" == Ricardo Kustner <ricardo@miss-janet.com> writes: RK> When I tried posting to the list, i got an error: post: File Okay, so sys.stdin isn't seekable everywhere :) Give the below patch a try.
thanks, but this patch produces another error:
<mailinglist@miss-janet.com>: Command died with status 1: "/usr/local/mailman/mail/wrapper post mailinglist". Command output: Traceback (innermost last): File "/usr/local/mailman/scripts/post", line 85, in ? main() File "/usr/local/mailman/scripts/post", line 57, in main s = StringIO(sys.stdin.read()) TypeError: call of non-function (type module)
Also, why did you add import StringIO? cause the pre-patch version already contains a call to StringIO a few lines earlier... unfortunately I haven't mastered python 100% yet, so I can't help out much with tracking down the bug :(
=================================================================== RCS file: /projects/cvsroot/mailman/scripts/post,v retrieving revision 1.25 diff -c -r1.25 post *** post 1999/11/24 21:11:07 1.25 --- post 1999/12/10 13:44:17
*** 33,38 **** --- 33,39 ---- from Mailman import Utils from Mailman.Logging.Utils import LogStdErr from Mailman.Handlers import HandlerAPI
from Mailman.pythonlib import StringIO
LogStdErr("error", "post")
*** 53,59 **** except: pass if msg is None: ! msg = Message.Message(sys.stdin) # go ahead and post the message adminaddr = mlist.GetAdminEmail() try: --- 54,61 ---- except: pass if msg is None: ! s = StringIO(sys.stdin.read()) ! msg = Message.Message(s) # go ahead and post the message adminaddr = mlist.GetAdminEmail() try:
-- Ricardo.
-- International Janet Jackson fanclub called MISS JANET. For more information write to: Miss Janet. P.O.Box 10016, 1001 EA Amsterdam, The Netherlands Fax/phone: +31-(0)20-7764493 Email: fanclub@miss-janet.com Or check out our website: http://miss-janet.com