-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Please describe the feature that you are requesting
Some email addresses have internationalized domain names. Mail servers are supposed to handle these by converting them to their ASCII equivalent, but some old mail servers may not be doing this. Therefore, it would be helpful if JMail can provide a way to get the ASCII equivalent email address of a parsed email address.
The goal is to create a method on the Email object that would return an ASCII/UTF8 only version, like so:
Email parsed = JMail.validator().tryParse("test@faß.de").get();
String asciiOnly = parsed.toAscii();
Additional context
https://gist.github.com/JamesBoon/feeb7428b3558d581c0459f7302bd9a5
Note that the IDN.toAscii()
method uses an out of date standard, IDNA2003. We need to implement the latest standard, INDA2008.
bbottema and JamesBoon
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request