Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incomplete headers in EmlParser #1010

Closed
wants to merge 1 commit into from
Closed

Fix incomplete headers in EmlParser #1010

wants to merge 1 commit into from

Conversation

ch0wm3in
Copy link
Contributor

Currently the 'content-type:' splitting is causing mails from office365 to be parsed incorrectly by the program, as seen with arc headers..
arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=microsoft.com; s=[REDACTED];
h=From:Date:Subject:Message-ID:------->Content-Type:<----------MIME-Version:X-MS-Exchange-SenderADCheck; (<- and -> is not actual syntax but to show case it)

This ensures that only the first 'real' 'content-type: blah blah' will be indexed to.

fixes #976

Currently the 'content-type:' splitting is causing mails from office365 to be parsed incorrectly by the program, as seen with arc headers..
arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=microsoft.com; s=[REDACTED];
h=From:Date:Subject:Message-ID:------->Content-Type:<----------MIME-Version:X-MS-Exchange-SenderADCheck; (<- and -> is not actual syntax but to show case it)

This ensures that only the first 'real' 'content-type: blah blah' will be indexed to.
@ch0wm3in ch0wm3in changed the title Update parse.py Fix incomplete headers in EmlParser Jun 14, 2021
@jeromeleonard
Copy link
Contributor

The analyzer has been rewritten and will be published soon (currently in develop branch). This should be fixed with the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants