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

DKIM body hash verification fails #213

Closed
breedbekkikker opened this issue Dec 30, 2015 · 2 comments
Closed

DKIM body hash verification fails #213

breedbekkikker opened this issue Dec 30, 2015 · 2 comments
Labels
bug Something isn't working

Comments

@breedbekkikker
Copy link

Body hash verification fails for some emails which are coming directly from Google servers (signed by Gmail). These are multipart/mixed emails which consist of two mime body parts. The second part is an attachment and the first part is a text/plain part where the mime body part content is null:

Example:
----_com.android.email_0000000000000000
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
[CR][LF]
----_com.android.email_0000000000000000

MimeKit, while re-assembling the original message body, apparently adds an additional CRLF before the second mime body part, and then calculates the body hash:

Example:
----_com.android.email_0000000000000000
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
[CR][LF]
[CR][LF]
----_com.android.email_0000000000000000

@jstedfast jstedfast added the bug Something isn't working label Dec 30, 2015
@breedbekkikker
Copy link
Author

Thanks, the fix is working fine.

@jstedfast
Copy link
Owner

Good to know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants