Remove emails with specific text regularly.
Install
$ brew install python3 pip3
$ pip3 install virtualenv
Run env for python3
$ virtualenv -p python3 envname
$ source ./bin/activate
$ deactivate
Create bash script file
$ cd ~/bin
$ touch gmail-clean.sh
In the file, add the following
#!/bin/bash
cd ~/path/to/virtualenv
source ./bin/activate
python quickstart.py
$ env EDITOR=vim crontab -e
Configure the cron job
0 12 * * * ~/bin/gmail-clean.sh