Bugs item #1409403, was opened at 2006-01-18 12:55
Message generated for change (Settings changed) made by msapiro
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1409403&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Sapiro (msapiro)
>Assigned to: Barry A. Warsaw (bwarsaw)
Summary: email.Message should supress warning from uu.decode

Initial Comment:
part.get_payload(decode=True) of a uuencoded
email.Message() sub-part can result in warning messages
being written to sys.stderr. These warnings occur when
pad characters other than encoded zeros were used to
fill out the last encoded line to a multiple of 4
characters (+1 for the count character). Such non-zero
padded encoded parts are produced by some current
versions of Eudora and perhaps other MUAs. The warnings
are unnecessary in this case and cause problems for
other software, e.g., Mailman.

get_payload(decode=True) calls uu.decode to actually
decode the part payload. It should specify the
quiet=True flag in this call to supress the warning.

A suggested patch against Python 2.4.2 is attached.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1409403&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to