jakartaee / jakartaee/mail-api

Double dots are still normal in some environments

Open
#511 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
285
Forks
109
Avg merge
15h 19m
Merged PRs (30d)
1

Description

In previous editions of Javamail, an unquoted local part containing double dots (and I believe leading or trailing dots) was acceptable. Some providers in Japan, such as NTT, still have many users whose addresses contain double dots. In the 2.0.0 release of Jakarta mail, this is no longer allowed and there is no way to override it through non-strict verification.

**To Reproduce**
Steps to reproduce the behavior:
In Java the following will throw an AddressException
InternetAddress ia = new InternetAddress( "a..b@foo.com", true);

**Expected behavior**
There needs to be a way to allow double dots and or leading and or trailing dots to be accepted.
One way to do this would be add a new system property, e.g. "mail.mime.allowdoubledots" and modify the
logic to respect that property.

Contributor guide

Open the contributing guide

Research direction

Start at the InternetAddress validation path shown in the reproduction and trace how strict verification rejects local parts with double, leading, or trailing dots. Determine how an opt-in system property should affect that validation while preserving the current default behavior. Done means the property allows the reported addresses and the Java reproduction no longer throws when it is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.