peterob wrote:
Im completely confinvalided from email library. When you parse email from
file it creates object Message.
f = open(emailFile, 'r')
msg = email.message_from_file(f)
f.close()
How can I access RAW header of email represented by object msg? I dont
wanna access each heade
Hi,
Im completely confused from email library. When you parse email from
file it creates object Message.
f = open(emailFile, 'r')
msg = email.message_from_file(f)
f.close()
How can I access RAW header of email represented by object msg? I dont
wanna access each header field by hand.
On 18 fév, 14:41, peterob wrote:
> 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() ==
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