You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
label:"help wanted" Creating an Email Object from a Message with incorrect signature #571
I have a use case where I need to parse emails with incorrect signatures (the original message from Exchange passing through a number of relays, once of which formatted the HTML body to 76 chars per line). As SMIMEUtil will through exception, I could not get the Email object for further processing. As this is not a bug of Simple Java Mail per-se, you may close this issue, but any suggestion is much appreciated. Many thanks.
Implemented in fb3bd8b. Simple Java Mail now treats S/MIME signature verification failure as invalid metadata rather than a conversion blocker when the signed content can still be extracted. Parsed emails keep the original S/MIME details with smimeSignatureValid=false, and signed S/MIME attachments are unwrapped with the same leniency.
Follow-up: #680 tightens the meaning of smimeSignatureValid while preserving this issue's lenient parsing contract. Invalid signed content will remain available when it can be extracted; the metadata will simply stop reporting confidence that was not established.
Activity
bbottema commentedon Jul 4, 2026
Implemented in fb3bd8b. Simple Java Mail now treats S/MIME signature verification failure as invalid metadata rather than a conversion blocker when the signed content can still be extracted. Parsed emails keep the original S/MIME details with smimeSignatureValid=false, and signed S/MIME attachments are unwrapped with the same leniency.
feat(smime): preserve content for invalid signatures
bbottema commentedon Jul 8, 2026
Released in Simple Java Mail v9.0.0, which is now available from Maven Central:
https://repo1.maven.org/maven2/org/simplejavamail/simple-java-mail/9.0.0/
Release notes:
https://github.com/bbottema/simple-java-mail/releases/tag/9.0.0
bbottema commentedon Aug 5, 2026
Follow-up: #680 tightens the meaning of
smimeSignatureValidwhile preserving this issue's lenient parsing contract. Invalid signed content will remain available when it can be extracted; the metadata will simply stop reporting confidence that was not established.