We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c7bc691 + 11fca40 commit b4fe28aCopy full SHA for b4fe28a
analyzers/EmlParser/parse.py
@@ -89,7 +89,7 @@ def parseEml(filepath):
89
#splited string because it was returning the body inside 'Content-Type'
90
hParser = email.parser.HeaderParser()
91
h = str(hParser.parsestr(raw_eml))
92
- result['headers'] = h[:h.index('Content-Type:')]
+ result['headers'] = h[:h.lower().index('content-type:')]
93
94
parsed_eml = eml_parser.eml_parser.decode_email(filepath, include_raw_body=True, include_attachment_data=True)
95
#parsed_eml['header'].keys() gives:
0 commit comments