Skip to content

Extracts all the email present in the headers or body in a Gmail mailbox

License

Notifications You must be signed in to change notification settings

Battleman/PyMailExtract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyMailExtract

Extracts all the email present in the headers or body in a Gmail mailbox

How to make it work ?

First of all, install the python requirements. This code was written for python 3.6. You can use virtualEnv, conda, pip or whatever you fancy. The packages that are not in a basic python install are listed in requirements.txt. You can input this file to pip.

Then, you need to enable API in your Gmail account. For that, go to this URL and follow step 1. Once that you have obtained the file credentials.json, place it at the same place than the script

At this point, you can just launch the code (on a computer with a visual interface): python3 Pymailextract.py Your browser will open a window to chose the google account you wish to use, and identify yourself. Once this is done, you can close the browser tab, and the code will run. Next runs won't require to log in the browser.

Support

Like this project? Consider supporting me, for more awesome updates

Buy me a coffeeBuy me a coffee

About

Extracts all the email present in the headers or body in a Gmail mailbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages