Skip to content

This script connects to your Gmail inbox, searches for rejection emails based on specific keywords in the subject or content, and automatically moves them to the trash. It's particularly useful for job seekers who want to quickly filter out rejection emails from their inbox.

Notifications You must be signed in to change notification settings

kemoeverlyne/Automated-Email-Rejection-Processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Automated Email Rejection Processor

This script automates the process of identifying and handling rejection emails in your Gmail inbox.

Setup

  1. Clone this repository:

git clone https://github.com/kemoeverlyne/Automated-Email-Rejection-Processor

cd automated-email-processor
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Create client_secrets.json:

Follow the instructions here to create and download your client_secrets.json file.

  1. Configure the script:

Open config.py and update the following variables:

  • EMAIL_ADDRESS: Your Gmail email address.
  • REJECTION_KEYWORDS: List of keywords that indicate rejection emails.
  1. Test the script:

Run the script manually to ensure it's working correctly

Automation

You can automate the execution of this script using scheduled tasks on your operating system:

Linux/macOS (using cron):

  • Open your terminal.
  • Type crontab -e to edit your cron jobs.
  • Add a line to schedule your script. For example, to run the script every day at 3:00 AM:
0 3 * * * /path/to/python3 /path/to/script.py

Windows (using Task Scheduler):

  • Open the Task Scheduler.
  • Create a new task and specify the Python interpreter and script path.
  • Set the desired schedule for the task.

Remember to handle errors and add proper logging in your script for a smooth automated process.

License

This project is licensed under the MIT License.

About

This script connects to your Gmail inbox, searches for rejection emails based on specific keywords in the subject or content, and automatically moves them to the trash. It's particularly useful for job seekers who want to quickly filter out rejection emails from their inbox.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages