Skip to content

pcourbin/pymail2file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pymail2file

This is a Python package that allows you to save email attachments to a file, on specific folder according to rules/filters.

You can save the files to:

  • Local storage
  • GDrive

Example tests.py

Create your .env file, e.g.

IMAP_HOST=mail.infomaniak.com
IMAP_PORT=993
SMPT_HOST=mail.infomaniak.com
SMTP_PORT=465
[email protected]
EMAIL_PASSWORD="SUPERPASSWORD"
[email protected]

Prepare your GDrive Account

If you want to use the GDrive part of the example, follow this part on PyDrive2:

  • Create the application on your Google APIs Console and save the JSON in client_secrets.json

  • Run the tests.py, the first time, a web page will open, accept the connection between the application you created and your Google Account ; a file credentials.json will be created, you will not need to log in next time.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages