Transparent Email clears aliases from email address
Project description
Transparent Email
Transparent Email clears aliases from email address. Email John.Doe+alias@gmail.com
will be transformed to johndoe@gmail.com
.
Inspired by : bkrukowski/transparent-email
Why?
To detect multi-accounts on your website.
Supported mailboxes
Installation
pip install transparentemail
Usage
from transparentemail.src import get_primary_email
from transparentemail.services.Emails.emailException import InvalidEmailException
try:
transformed_email = get_primary_email('John.Doe+alias@gmail.com')
print(transformed_email) # John.Doe@gmail.com
except InvalidEmailException:
print('Invalid Email')
Yahoo.com
Aliases work different on Yahoo than on Gmail. On Gmail part after plus is skipped.
For example message sent to janedoe+alias@gmail.com
will be redirected to janedoe@gmail.com
.
Yahoo uses the following pattern*:
baseName-keyword@yahoo.com
- baseName - value defined by the user, different than email login;
- keyword - one from a list of keywords defined by the user.
Therefore we do not know what is the real email, so in this case result will be baseName@yahoo.com
,
which actually does not exist.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
TransparentEmail-0.1.2.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for TransparentEmail-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ccd40b661bd3a631961729cf7947725a62eaf4f9386c2bd47fdf47a0dfad02 |
|
MD5 | a864454a6aabf57125e62c5c5db11cb7 |
|
BLAKE2b-256 | 519368e3eb7a56dd7413b6addcff3f6a0a127340255efcfc322dc7a41623d24b |