1ad4b1a5c01793e20dbdb1a88d1a695b4a5649f4
promo_cleanup
This script enumerates all subfolders under a folder named "Promotions" on your IMAP server and deletes everything more than a week old. Use it against mailers who aren't exactly sending spam but that you don't want cluttering your main inbox by using something like procmail or sieve to sort them into Promotions subfolders. Files to start this from a systemd user timer are included.
Copy docker-compose.yml.tmpl to docker-compose.yml and fill in these variables:
IMAP_SERVER
IMAP_USER
IMAP_PASSWD
The script assumes you have SSL enabled on port 993 on your IMAP server. If you don't, you're doing it wrong.
Description
Languages
Python
57.6%
Dockerfile
28.3%
Shell
14.1%