import email from emaildata.text import Text message = email.message_from_file(open('message.eml')) text = Text.text(message) html = Text.html(message)