I wrote this small utility to clean up my mail inboxes. It is planned to let this utility run with a cron job, so it scans my mails every 5 minutes and moves those away based on my configured rules.
This utility is not stable yet. It's under heavy development and might change completely.
- Go toolchain installed
- Mail account with
UIDPLUS
capability
- First clone this repository.
- To just build this utility:
go build .
Execute the program and add your configs as arguments.
./mail-organizer ./example_config.yaml ./example_config_2.yaml
# Or without prior building
go run . ./example_config.yaml ./example_config_2.yaml
First create a docker image:
docker build -t mail-organizer:0.1.0 .
Next run the Docker Image and mount your configs:
docker run --rm -t -v $(PWD)/example.yaml:/home/nonroot/example.yaml:ro mail-organizer:0.1.0