-
Notifications
You must be signed in to change notification settings - Fork 109
Open
Description
Is your feature request related to a problem? Please describe.
In our third party application uses to generate uniqueId with other than System user.name and we cannot set session property. If new System property jakarta.mail.user added it will ok
Describe the solution you'd like
in jakarta.mail.internet.InternetAddress._getLocalAddress
String user = null, host = null, address = null;
if (session == null) {
user = System.getProperty("jakarta.mail.user");
if (user == null || user.length() == 0)
user = System.getProperty("user.name");
host = getLocalHostName();
} else {
address = session.getProperty("mail.from");
if (address == null) {
user = session.getProperty("mail.user");
if (user == null || user.length() == 0)
user = session.getProperty("user.name");
if (user == null || user.length() == 0)
user = System.getProperty("jakarta.mail.user");
if (user == null || user.length() == 0)
user = System.getProperty("user.name");
host = session.getProperty("mail.host");
if (host == null || host.length() == 0)
host = getLocalHostName();
}
}
Describe alternatives you've considered
No alternative solution
Additional context
no additional context
Metadata
Metadata
Assignees
Labels
No labels