vasanthn7 / GmailAPI

Python application using Gmail API to filter and modify emails based on rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GmailAPI

Python application using Gmail API to filter and modify emails based on rules

Installation

  • Once cloned, install all the packages specified in the requirements.txt
  • Get credentials from google for Gmail API and store it as credentials.json in the working dirrectory
  • Install MySQL drivers(mysql-dev(el) for linux based system)
  • Create a file called .env with 2 entries
DB_USER=<Database User Name>
DB_PASSWORD=<Database User Password>
  • run python3 store_data.py to provide access and store emails in database
  • run python3 update_mail.py to take actions based on rules listed in rule.json
  • Read Filter_instructions.md and change rule.json accordingly

About

Python application using Gmail API to filter and modify emails based on rules

License:GNU General Public License v3.0


Languages

Language:Python 100.0%