Skip to content

Possible missed test cases #7

Description

@rjcmln

Hi, thanks for creating this Rust crate, I started using it and I like it very much.

I was using these documents to examine intentional email addresses:
https://en.wikipedia.org/wiki/Email_address#Internationalization
https://en.wikipedia.org/wiki/International_email
and I found some cases that don't match.

  1. Marked as invalid, should be valid
    "user-@example.org"

  2. Marked as valid, should be invalid
    "1234567890123456789012345678901234567890123456789012345678901234+x@example.com"
    "i_like_underscore@but_its_not_allowed_in_this_part.example.com"

  3. Suggestion: maybe non-trimmed emails should also be returned as invalid:
    " simple@example.com"

Maybe these Wikipedia documents are irrelevant for your RFC 5322 and RFC 6532 definitions, but if they are - please double-check.

Thanks and keep up the great work

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions