Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert outlook email to text file python

import email
from emaildata.metadata import MetaData

message = email.message_from_file(open('message.eml'))
extractor = MetaData(message)
data = extractor.to_dict()
print data.keys()

message2 = email.message_from_file(open('message2.eml'))
extractor.set_message(message2)
data2 = extractor.to_dict()
Source by pypi.org #
 
PREVIOUS NEXT
Tagged: #convert #outlook #email #text #file #python
ADD COMMENT
Topic
Name
3+1 =