simple-java-mail
simple-java-mail copied to clipboard
Bump com.sanctionco.jmail:jmail from 1.4.1 to 1.6.3
Bumps com.sanctionco.jmail:jmail from 1.4.1 to 1.6.3.
Release notes
Sourced from com.sanctionco.jmail:jmail's releases.
v1.6.3
- Fix bug where email addresses containing control characters in the local-part were incorrectly considered valid. (Thanks
@PascalSchumacherfor reporting!)- Add new methods
ifValid(Consumer<Email> action)andifValidOrElse(Consumer<Email> action, Consumer<FailureReason> failureAction)to theEmailValidationResultobject.v1.6.2
- Fix bug where IPv4 addresses with non-arabic numerals would incorrectly be considered valid. (Thanks
@harrel56for reporting!)- Fix bug where IPv4 addresses with extraneous leading zeros would incorrectly be considered valid. (Thanks
@harrel56for reporting!)- The
requireValidMXRecord()validation rule now correctly fails validation for domains that use a "Null MX" record. (Thanks@elmolmfor contributing! 🎉)v1.6.1
- Fix bug so that email addresses that end in a dash
-character now correctly fail validation with the reasonFailureReason.DOMAIN_PART_ENDS_WITH_DASHinstead of incorrectly returningFailureReason.ENDS_WITH_DOT. (Thanks@tbatchlearfor reporting!)v1.6.0
- Add a new rule
requireAscii()that considers an email address containing non-ASCII characters to be invalid. (Thanks@frodetofor suggesting!)- Add new property
isAscii()on- Add option to strip quotes within the local-part of an email address when normalizing the address with the
normalize()method. (Thanks@tdelaney-leadirofor 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=trueJVM property at runtime, and continue to use thenormalize()method without parameters.v1.5.1
- Add a new rule
requireValidMXRecord(int initialTimeout, int numRetries)that allows for customization of the timeout for DNS lookups. (Thanks@dotneutronfor suggesting!)- Reduce the default timeout for DNS lookups when adding the
requireValidMXRecord()rule to anEmailValidatorfrom potentially taking a maximum of 25 seconds to a maximum of 600 milliseconds.v1.5.0
- Add new method
validate(String email)that returns anEmailValidationResultobject, containing the reason for validation failure upon failure. (Thanks@bobharnerfor suggesting!)- Add new
ValidationRulerequireValidMXRecord()to consider email addresses that have a domain with no MX record in DNS as invalid. (Thanks@lpellegrfor suggesting!)- Fix bug where an email address that ends with a comment that is missing the closing parentheses were incorrectly considered as valid. For example:
[email protected](comment
Changelog
Sourced from com.sanctionco.jmail:jmail's changelog.
1.6.3
- Fix bug where email addresses containing control characters in the local-part were incorrectly considered valid. (Thanks
@PascalSchumacherfor reporting!)- Add new methods
ifValid(Consumer<Email> action)andifValidOrElse(Consumer<Email> action, Consumer<FailureReason> failureAction)to theEmailValidationResultobject.
1.6.2
- Fix bug where IPv4 addresses with non-arabic numerals would incorrectly be considered valid. (Thanks
@harrel56for reporting!)- Fix bug where IPv4 addresses with extraneous leading zeros would incorrectly be considered valid. (Thanks
@harrel56for reporting!)- The
requireValidMXRecord()validation rule now correctly fails validation for domains that use a "Null MX" record. (Thanks@elmolmfor contributing! 🎉)
1.6.1
- Fix bug so that email addresses that end in a dash
-character now correctly fail validation with the reasonFailureReason.DOMAIN_PART_ENDS_WITH_DASHinstead of incorrectly returningFailureReason.ENDS_WITH_DOT. (Thanks@tbatchlearfor reporting!)
1.6.0
- Add a new rule
requireAscii()that considers an email address containing non-ASCII characters to be invalid. (Thanks@frodetofor suggesting!)- Add new property
isAscii()on- Add option to strip quotes within the local-part of an email address when normalizing the address with the
normalize()method. (Thanks@tdelaney-leadirofor 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=trueJVM property at runtime, and continue to use thenormalize()method without parameters.
1.5.1
- Add a new rule
requireValidMXRecord(int initialTimeout, int numRetries)that allows for customization of the timeout for DNS lookups. (Thanks@dotneutronfor suggesting!)- Reduce the default timeout for DNS lookups when adding the
requireValidMXRecord()rule to anEmailValidatorfrom potentially taking a maximum of 25 seconds to a maximum of 600 milliseconds.
1.5.0
- Add new method
validate(String email)that returns anEmailValidationResultobject, containing the reason for validation failure upon failure. (Thanks@bobharnerfor suggesting!)- Add new
ValidationRulerequireValidMXRecord()to consider email addresses that have a domain with no MX record in DNS as invalid. (Thanks@lpellegrfor suggesting!)- Fix bug where an email address that ends with a comment that is missing the closing parentheses were incorrectly considered as valid. For example:
[email protected](comment
Commits
5068087[maven-release-plugin] prepare release v1.6.3cb2635cAdd new ifValid and ifValidOrElse methodsa986bd7Remove quodana scan in CIb179558Addresses with unquoted control characters should be invalid77a2ee6Bump JetBrains/qodana-action from 2024.1.4 to 2024.1.5 in the gh-actions grou...7cbe01eBump JetBrains/qodana-action from 2024.1.3 to 2024.1.4 in the gh-actions grou...0d5df44Bump JetBrains/qodana-action from 2024.1.2 to 2024.1.3 in the gh-actions grou...c5cb447Bump com.puppycrawl.tools:checkstyle from 10.15.0 to 10.16.0 in the test-depe...1bc5bbaBump JetBrains/qodana-action from 2024.1.1 to 2024.1.2 in the gh-actions grou...a1a8947Bump JetBrains/qodana-action from 2023.3.2 to 2024.1.1 in the gh-actions grou...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)