Skip to content

Releases: RohanNagar/jmail

v1.3.0

09 Sep 15:35
Compare
Choose a tag to compare
  • InternetProtocolAddress.validate(String ip) now validates IPv6 addresses without requiring the IPv6: prefix.
  • Add new JMail.isInvalid(String email) and EmailValidator#isInvalid(String email) methods as a convenience for testing if an email address is invalid.

v1.2.3

03 Sep 21:00
Compare
Choose a tag to compare
  • Add toString() method on EmailValidator
  • Add withRules(Collection<Predicate<Email>> rules) method on EmailValidator to create a new EmailValidator from the collection of rules provided

v1.2.2

29 Jun 15:13
Compare
Choose a tag to compare
  • Fix bug where an exception would be thrown on invalid email addresses with whitespace or comments after a trailing . character. For example, abc.def@ghi. (comment) is invalid, and before this version JMail would throw an exception instead of return invalid.
    (Thanks @ea234 for reporting!)

v1.2.1

03 Jun 20:45
Compare
Choose a tag to compare
  • EmailValidator is now immutable

v1.2.0

28 May 16:41
Compare
Choose a tag to compare
  • Switch TopLevelDomain from an enum to a class, allowing for creation of any valid top level domain (Thanks @bowbahdoe!)
  • Add module-info.java so projects on JDK 9+ can use this library as a Java module
  • Bugfix: Addresses with empty quoted strings (""@test.org) are now correctly considered valid
  • Bugfix: Addresses with explicit source routing (@1st.relay,@2nd.relay:user@final.domain) are now considered valid. However, explicit source routing is deprecated since RFC 5321. JMail.strictValidator() disallows explicit source routing by default
  • Bugfix: Addresses with quoted identifiers (John Smith <John@smith.com>) are now correctly considered valid
  • New properties on the Email object:
    • identifier()
    • hasIdentifier()
    • explicitSourceRoutes()

v1.1.0

22 May 22:08
Compare
Choose a tag to compare
  • Disallow construction of utility classes and prevent classes from being subclassed (Thanks @bowbahdoe!)
  • Fix bug where email addresses that have a dotless domain or top level domain starting with the - character would be incorrectly classified as valid.
    For example, test@-foo and test@my.-domain should both be invalid.

v1.0.4

22 May 00:32
Compare
Choose a tag to compare
  • You can now disallow email addresses with reserved domains listed in RFC 2606, such as example.com or .invalid.

    JMail.validator().disallowReservedDomains().isValid("test@example.com");
    

v1.0.3

21 May 22:04
Compare
Choose a tag to compare
  • Fix bug where JMail did not consider single quoted symbols (ex. \@) as valid.

v1.0.2

20 May 23:15
Compare
Choose a tag to compare
  • Better javadocs
  • Internal performance improvements

v1.0.1

20 May 23:08
Compare
Choose a tag to compare
  • Add JMail.strictValidator() that has pre-configured common rules enabled (stricter than the RFCs allow)