From 7fded1a248993d0ea603ea7e17ef12513e315552 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 3 Sep 2015 08:49:02 -0400 Subject: [PATCH] Fixed DKIM logic to write to the *filtered* stream, not the raw stream The filtered stream is what canonicalizes the input. Fixes issue #172 --- MimeKit/MimeMessage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MimeKit/MimeMessage.cs b/MimeKit/MimeMessage.cs index 1c5988b4c6..db95000bd2 100644 --- a/MimeKit/MimeMessage.cs +++ b/MimeKit/MimeMessage.cs @@ -1313,7 +1313,7 @@ byte[] DkimHashBody (FormatOptions options, DkimSignatureAlgorithm signatureAlgo if (Body != null) { try { Body.Headers.Suppress = true; - Body.WriteTo (options, stream, CancellationToken.None); + Body.WriteTo (options, filtered, CancellationToken.None); } finally { Body.Headers.Suppress = false; }