I have too many unread old emails. So I made this script to do it for me instead.
You need a json file from your Google account with tokens from the Gmail API with Gmail modify scope,
and name the json file credentials.json
.
Create a Conda environment:
conda create --name read-my-emails python=3.12
Activate the environment:
conda activate read-my-emails
Install pip in the environment:
conda install pip
Install required packages:
pip install -r requirements.txt
Run the script:
python read-emails.py