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.1.tar.gz
.
File metadata
- Download URL: TransparentEmail-0.1.1.tar.gz
- Upload date:
- Size: 4.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 | 6b9b11321e16523340ae0316a52f8e04b830933a6ba182d78a1a300251d503c3 |
|
MD5 | 3904e03718e6a847c1318042446852ca |
|
BLAKE2b-256 | e88c8287e294ef483cd2449ce272870c949384fab9f508a2a7db8f45e5eda8fa |
File details
Details for the file TransparentEmail-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: TransparentEmail-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.3 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 | 3218c8374ab2ce24ca2a319064fcde062eaec6df1c886bd6100c9c0f3390fcd1 |
|
MD5 | 241b3bfc88ae3db437fa893c607dfee0 |
|
BLAKE2b-256 | 963eea2a8371302ab6ed95a306bdbba9f15514459fe0258207c87bdbe2019837 |