Skip to content

Replace the email validation library with a better one #319

Closed

Description

@naude-r

currently email address validation fails for addresses with diacritics, e.g: **çkayden****@gmail.com

disabling validation outright is a short-term solution. ideally one should be able to add a custom validator implementation.

would it be possible to add such a feature?

Activity

  1. bbottema commented on May 31, 2021

    @bbottema
    Owner

    There's a pretty good chance that the underlying email validation library will be replaced with a better and faster one. See the discussion here: bbottema/email-rfc2822-validator#22. In which case your case would not be a problem anymore.

    I think the validation library should be good enough and configurable enough so that would never need to replace it with your own validation. Backup scenario is to turn it off completely and do it manually, but we're not shooting for that.

  2. changed the title [-]Configurable validator[/-] [+]Replace the email validation library with a better one[/+] on May 31, 2021
  3. bbottema commented on May 31, 2021

    @bbottema
    Owner

    The goal now is to probably replace https://github.com/bbottema/email-rfc2822-validator with https://github.com/RohanNagar/jmail.

    Why? JMail is implemented with a lexer, which is far superior to regex based validation in terms of debugging, documentation and performance. In addition JMail is more up to date with recent RFC's, where email-rfc2822-validator is stuck in the past with RFC2822, while not covering it completely (but enough for practical use). This includes support for diacritics as mentioned in this bug report.

  4. naude-r commented on Jun 1, 2021

    @naude-r
    Author

    @bbottema thank you for the feedback. looking forward to the change.

  5. RohanNagar commented on Jun 2, 2021

    @RohanNagar
    Contributor

    Heads up that this is blocked until you can switch simple-java-mail to Java 8

    (Java 8 also blocks #295)

  6. added this to the 7.0.0 milestone on Jun 12, 2021
  7. added a commit that references this issue on Jun 29, 2021
  8. bbottema commented on Jan 2, 2022

    @bbottema
    Owner

    7.0.0 just released!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions