P
peterob
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.
Im doing another parsing, searching for attachments and so on, with
email, but i need write raw data of email too. Do I have to allocate
another memory for that emailFile? (by mmap or f=open(rawemail).
Thanks
Best,
Peter
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.
Im doing another parsing, searching for attachments and so on, with
email, but i need write raw data of email too. Do I have to allocate
another memory for that emailFile? (by mmap or f=open(rawemail).
Thanks
Best,
Peter