[Mailman-Developers] [Mailman-Users] Problems with uuencoded attachments

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Sun Jan 15 03:59:37 CET 2006


Mark Sapiro wrote:


>> File "/usr/lib/python2.3/uu.py", line 139, in decode
>>   sys.stderr.write("Warning: %s\n" % str(v))
>> File "/usr/lib/mailman/Mailman/Logging/MultiLogger.py", line 45, in write
>>   _logexc(logger, msg)
>> File "/usr/lib/mailman/Mailman/Logging/Utils.py", line 22, in _logexc
>>   sys.__stderr__.write('Logging error: %s\n' % logger)
>>IOError: [Errno 32] Broken pipe
> 

> I think this could be fixed by changing
> "/usr/lib/mailman/pythonlib/email/Message.py", line 223 from
> 
>                     uu.decode(StringIO(payload+'\n'), sfp)
> 
> to
> 
>                     uu.decode(StringIO(payload+'\n'), sfp, quiet=True)
> 
> 


There should be other chances that Python builtin modules spew warnings 
to sys.stderr.  How about this patch for Logging/Utils.py to write these 
messages into syslog facility.



-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Utils.py.patch
Url: http://mail.python.org/pipermail/mailman-developers/attachments/20060115/fedc6190/attachment.asc 


More information about the Mailman-Developers mailing list