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
Built Distribution
File details
Details for the file TransparentEmail-0.1.2.tar.gz
.
File metadata
- Download URL: TransparentEmail-0.1.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.5 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175dd14dabbbe542d1e96dc3e6380cb508fad48d79188cc48eba7a640323e655 |
|
MD5 | 1477b0549b27994132cc9f9b40405e8a |
|
BLAKE2b-256 | 33ea2027d5958735e4d023958e15b4679b68e0aeadea31460a65c64f5f15b9b5 |
File details
Details for the file TransparentEmail-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: TransparentEmail-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.8.5 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69ccd40b661bd3a631961729cf7947725a62eaf4f9386c2bd47fdf47a0dfad02 |
|
MD5 | a864454a6aabf57125e62c5c5db11cb7 |
|
BLAKE2b-256 | 519368e3eb7a56dd7413b6addcff3f6a0a127340255efcfc322dc7a41623d24b |