Skip to content

Commit

Permalink
Fixed DKIM logic to write to the *filtered* stream, not the raw stream
Browse files Browse the repository at this point in the history
The filtered stream is what canonicalizes the input.

Fixes issue #172
  • Loading branch information
jstedfast committed Sep 3, 2015
1 parent 20a0c6f commit 7fded1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MimeKit/MimeMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7fded1a

Please sign in to comment.