This is a docker image running the awesome imapfilter as a cron in a docker container.
I was searching for a solution to filter, tag, move and delete my emails independently from my server and client which is usable not only on a special provider. Its fully based on IMAP which most of the mailservers provide.
First you have to create config.lua which we mount later into the container. Don't be scared! LUA is not that hard! A very helpful source was this blogbost. It teachs me, how to configure imapfilter. A good documentation you can also find here
docker run -d \
-e "IMAP_USERNAME=${IMAP_USERNAME}" \
-e "IMAP_HOST=${IMAP_HOST}" \
-e "IMAP_PASSWORD=${PASSWORD}" \
-v $(pwd):/root/.imapfilter/