You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new rule requireAscii() that considers an email address containing non-ASCII characters to be invalid. (Thanks @frodeto for suggesting!)
Add new property isAscii() on Email objects that returns if the email address only contains ASCII characters or not.
Add option to strip quotes within the local-part of an email address when normalizing the address with the normalize() method. (Thanks @tdelaney-leadiro for suggesting!)
This new option will remove quotes if the email address would still be valid and semantically the same without them.
To enable the option, either:
Call the normalize method that takes a boolean as the parameter, and use true. Example: email.normalize(true)
Set the -Djmail.normalize.strip.quotes=true JVM property at runtime, and continue to use the normalize() method without parameters.