A largely unfinished bot designed to quickly and autonomously reply to emails which meet one or more certain criteria
- A user wishes to rapidly and autonomously reply to an email which matches sender criteria
- A user wishes to rapidly and autonomously reply to an email which matches subject line criteria
- A user wishes to rapdily and autonomously reply to an email which matches message body criteria
- Program must run autonomously and automatically
- Program must monitor a given email at all times without the need for the user to host the program
- Program must be accessible from both Apple and Windows machines
- User must have the ability to create or modify a reply message
- User must have the ability to specify the desired sender, subject line, and/or message body criteria
- User must have the ability to enter personal email credentials without those credentials being compromised
From within Linux environment:
sudo apt-get update
apt-get install python3.9 python3.9-dev python3.9-venv
Ensure python is a link that points to python3.10
ls -l `which python`*
If it is not:
Assuming python is in /usr/bin/
rm /usr/bin/python
ln -s /usr/bin/python3.10 /usr/bin/python
From the email-bot directory:
python -m venv pyenv
source pyenv/bin/activate
python3 -m pip install -r requirements.txt
- The
email-dot/emailHandlerdirectory contains a file called.env.example. Copy this file and rename it to.env. ** Note: The.gitignorefile ignores .env files, so there is no risk of accidentally commiting credentials to the repo. - Fill in credentials for
USERNAMEandPASSwithin the.envfile, and Voilà!
Gmail is quite secure, you'll need to enable 'Less Secure App Access'
https://myaccount.google.com/lesssecureapps?pli=1&rapt=AEjHL4NULCpvZyDMav0aPPVtnzCgGlmwCE8ejYSYlK4GogISJv4SlFyBovsOdbcNXsI-Qi19WnBGdfTi02htCGvYVZY7u-sEHA
Actually, we are now using OAuth2, and a credentials.json file containing the API key and secret is required to be in the emailHandler directory