Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 694 Bytes

File metadata and controls

15 lines (14 loc) · 694 Bytes

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