jakartaee / jakartaee/mail-api
UniqueValue should use UUID::randomUUID for boundary and messageid
- Dominant language
- Java
- Stars
- 285
- Forks
- 109
- Avg merge
- 15h 19m
- Merged PRs (30d)
- 1
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
```java
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
Contributor guide
Assessment
This issue has not been assessed yet.