email library, get_payload() bug?
peterob
peterob333 at gmail.com
Fri Feb 18 08:41:03 EST 2011
Helllo,
I want to get the raw format of email body. the code Im using is
for part in email.walk():
if part.get_content_maintype() == 'multipart':
continue
if part.get_content_type() == 'text/plain':
# print part.get_content_type()
print part.get_payload(None,True)
The problem is, that code adds one more '\n' at the and of the output
printed by get_payload(). Is that bug?
Thanks.
Best,
Peter
More information about the Python-list
mailing list