This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author trolldbois
Recipients georg.brandl, trolldbois
Date 2009-05-06.23:45:19
SpamBayes Score 0.00053860183
Marked as misclassified No
Message-id <1241653521.65.0.301941900122.issue5951@psf.upfronthosting.co.za>
In-reply-to
Content
From documentation : 
http://docs.python.org/library/email.message.html?highlight=email#email.message.Message.get_payload

get_payload([i[, decode]])

"With optional argument i,[..] If the payload is a string (i.e.
is_multipart() is False) and i is given, a TypeError is raised."

and 

"Optional decode is a flag [..] When True and the message is not a
multipart, the payload will be decoded if this header’s value is
quoted-printable or base64. [..]"

Now the bug : 
On a non-multipart b64 email,
how can the second-level-option "decode" be used, when using
first-level-optional 'i' throws an exception...

Two fixes possible : 
a) code fix
b) documentation fix
History
Date User Action Args
2009-05-06 23:45:21trolldboissetrecipients: + trolldbois, georg.brandl
2009-05-06 23:45:21trolldboissetmessageid: <1241653521.65.0.301941900122.issue5951@psf.upfronthosting.co.za>
2009-05-06 23:45:20trolldboislinkissue5951 messages
2009-05-06 23:45:19trolldboiscreate