Giter Site home page Giter Site logo

mxsniff's People

Contributors

deepsourcebot avatar jace avatar karthikb351 avatar miteshashar avatar pre-commit-ci[bot] avatar pupaxxo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mxsniff's Issues

Tag "webmail" providers

The provider list should have a "webmail" flag to indicate a certain provider offers free email at their domain, and that an email address at such a service does not represent the owner's formal association with that service.

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Allow hardcoded domain list in providers

The provider list currently uses MX lookup to determine a provider. However, some well known domains such as gmail.com and yahoo.com have a direct relationship with a provider. These can be hardcoded, saving the DNS lookup. The providers dictionary should accept a domains list, with a reverse lookup table constructed similar to the MX lookup dict (without the special dict type).

Provide a normalisation function to match email addresses

The following email addresses all point to the same mailbox:

  1. [email protected]
  2. [email protected]
  3. [email protected]
  4. [email protected]

There are use cases for "normalising" email addresses to confirm two different strings point to the same mailbox (see hasgeek/lastuser#221 for example). mxsniff should provide a normalisation function that:

  1. Lowercases the domain portion. (The mailbox portion's case must be preserved as per RFC 5321. Lowercasing it for the purpose of indexing should be a downstream concern.)
  2. Strips + suffixes from the mailbox portion.

A custom normalisation function for the google-gmail provider does additional processing:

  1. Replaces @googlemail.com with @gmail.com
  2. Strips . (periods) from the address

mxsniff will default to the standard normalisation function if a provider doesn't specify a custom function. Combined with #5, this can be used to normalise an email address without a DNS lookup, using just the domain to guess.

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.