jstedfast / MimeKit

A .NET MIME creation and parser library with support for S/MIME, PGP, DKIM, TNEF and Unix mbox spools.
http://www.mimekit.net
MIT License
1.81k stars 368 forks source link

DKIM-Signature without a signed From header #167

Closed breedbekkikker closed 9 years ago

breedbekkikker commented 9 years ago

If the "h=" tag does not include the From header field, the Verifier MUST ignore the DKIM-Signature header field and return PERMFAIL (From field not signed). See https://tools.ietf.org/html/rfc6376#section-6.1.1

One might expect that ValidateDkimSignatureParameters would throw a format exception if the DKIM-Signature "h=" tag does not include a From header field.

jstedfast commented 9 years ago

fixed