This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from email import parser, message | |
from email.header import decode_header | |
class EmlParser(object): | |
def __init__(self, email: bytes): | |
self.parsed = parser.BytesParser().parsebytes(email) | |
def file_name_extractor(self, text): |