Skip to content

refactor(validation): rely on JMail 2.2.1 for RFC 2047 encoded word r… - #719

Closed
RohanNagar wants to merge 1 commit into
bbottema:masterfrom
RohanNagar:jmail221
Closed

refactor(validation): rely on JMail 2.2.1 for RFC 2047 encoded word r…#719
RohanNagar wants to merge 1 commit into
bbottema:masterfrom
RohanNagar:jmail221

Conversation

@RohanNagar

@RohanNagar RohanNagar commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

…ejection

Hey @bbottema 👋🏽

I just released v2.2.1 of JMail, which includes a fix for rejecting addresses that have encoded words in the local-part.

It also improves performance by up to 78% (avg time to validate email@example.com went from ~450ns to ~95ns).

EDIT: I think one test is failing locally, haven't had time to dive into it yet.

@bbottema bbottema added the dependencies Pull requests that update a dependency file label Sep 5, 2026
@bbottema bbottema added this to the 9.3.3 milestone Sep 5, 2026
bbottema added a commit that referenced this pull request Sep 5, 2026
Retain Simple Java Mail's encoded-word guard for callers that disable general address validation.

Co-authored-by: Rohan Nagar <rohannagar11@gmail.com>
@bbottema

bbottema commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Thanks for the update! I've included JMail 2.2.1 in 9.3.3 via 3851030, with your contribution attribution preserved. I kept Simple Java Mail's encoded-word guard because callers may intentionally pass no general address validator; relying only on JMail would regress that supported path. This PR is therefore superseded by the integrated change.

@bbottema bbottema closed this Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants