[Mailman-Users] Sendmail.py - Delivery exception: [Errno 32] Broken pipe (fixed)

Samuel Masham samuelm at dme.sony.co.uk
Tue Aug 6 19:52:33 CEST 2002


Hi All,

Just to put this in the public domain.

Error message
Aug 06 15:25:04 2002 (5277) Delivery exception: [Errno 32] Broken pipe
Aug 06 15:25:04 2002 (5277) Traceback (most recent call last):
   File ".../Mailman/Handlers/HandlerAPI.py", line 82, in do_pipeline
     func(mlist, msg, msgdata)
   File ".../Mailman/Handlers/Sendmail.py", line 86, in process
     fp.write(msgtext)
IOError: [Errno 32] Broken pipe

(mailman version 2.0.11 -ish- )

basically just add a replace in the Sendmail.py file around line 86

eg:-

        # TBD: SECURITY ALERT.  This invokes the shell!
         fp = os.popen(cmd + chunk, 'w')
+       string.replace(msgtext,"\n.\n","\n. \n");
        fp.write(msgtext);

         status = fp.close()

I am just posting this here as when I looked I saw lots of questions but no 
answers to this one.

Samuel

ps I am not subscribed so if you want to mail me it will have to be direct.





More information about the Mailman-Users mailing list