usrflo / DKIM-for-JavaMail

DKIM for JavaMail is a small JAR that can be easily implemented in existing Java projects using JavaMail for sending DKIM signed emails.
Apache License 2.0
34 stars 48 forks source link

NP fix if body contains only sequences of \r\n & Removing mandatory headers To & Subject from signing #4

Closed aarishramesh closed 7 years ago

aarishramesh commented 8 years ago

Issue scenarios & fixes

  1. When the body of the mail contains even sequences of \r\n then during either of the simple or relaxed canonicalization techniques null pointer exception gets thrown which is fixed
  2. To & Subject headers have been removed from mandatory tags as mails sent from mail client for instance need not have the headers but the mail is valid & need to be signed
usrflo commented 7 years ago

Thank you for this bugfix, I manually merged the changes.