Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-273

EmailValidator does not support mailboxes at TLDs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1 Release
    • Fix Version/s: 1.4.1 Release
    • Component/s: Framework
    • Labels:
      None

      Description

      According to RFC 5321 and 5322, mailboxes at top level domain names are permitted. Thus, the syntax localpart@tld is valid. Explicit text to this topic can be found in RFC 5321:

      2.3.5. Domain Names

      A domain name (or often just a "domain") consists of one or more
      components, separated by dots if more than one appears. In the case
      of a top-level domain used by itself in an email address, a single
      string is used without any dots.

      Accordingly, the code

      EmailValidator ev = EmailValidator.getInstance();
      System.out.println(ev.isValid("m@de"));

      should output "true".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                britter Benedikt Ritter
                Reporter:
                marsangr Marcos Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: