Message87353
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 |
|
Date |
User |
Action |
Args |
2009-05-06 23:45:21 | trolldbois | set | recipients:
+ trolldbois, georg.brandl |
2009-05-06 23:45:21 | trolldbois | set | messageid: <1241653521.65.0.301941900122.issue5951@psf.upfronthosting.co.za> |
2009-05-06 23:45:20 | trolldbois | link | issue5951 messages |
2009-05-06 23:45:19 | trolldbois | create | |
|