def parse_email(path, collection): doc = models.Document( path=path, content_type='application/vnd.ms-outlook', collection=collection, ) return emails.parse_email(doc)
def parse_email(path, collection): doc = models.Document( path=path, content_type='message/x-emlx', collection=collection, ) return emails.parse_email(doc)
def test_doc_flags(): doc = create_email_doc(PATH_HUSH_MAIL) emails.parse_email(doc) assert doc.flags.get('pgp')
def parse_email(path): return emails.parse_email(create_email_doc(path))
def parse_email(path): doc = models.Document(path=path, content_type='message/x-emlx') return emails.parse_email(doc)