Python application using Gmail API to filter and modify emails based on rules
- 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 inrule.json
- Read
Filter_instructions.md
and changerule.json
accordingly