GithubHelp home page GithubHelp logo

Comments (3)

jstedfast avatar jstedfast commented on June 4, 2024 1

SMTP doesn't handle comments either in the MAIL FROM or RCPT TO commands.

There are 2 different email address specifications: SMTP and Internet Message Format.

Most people (including wikipedia) confuse the two and think they are the same, but they are not.

Comments may only appear in the From/To/Cc/etc headers of an Internet Message, but may not appear in the addresses used with SMTP.

Email Address Validation is for what? It's not for parsing emails used in a raw Internet Message document. They are for validating user-input in a text field because they will be used with SMTP.

Correct?

Then it stands to reason that an EmailValidator needs to conform to the SMTP specification and not the Internet Message Format specification.

So there's no need to handle comments (because, let's be honest, what user is going to write comments in their email address on a web form? or anywhere else for that matter?)

If you want comments to be handled, use MimeKit - that's why I wrote that library :)

from emailvalidation.

Xor-el avatar Xor-el commented on June 4, 2024

thanks for your splendid explanation.
Regards.

from emailvalidation.

jstedfast avatar jstedfast commented on June 4, 2024

No prob :)

from emailvalidation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.