Please consider using https://github.com/kimar/imap2webdav
Fork of targodan/maildav.
IMAP polling service that uploads attachments to a WebDav server.
- Copy the config.example.yml and adjust to your needs:
$ cp config.example.yml config.yml
- Run service using Docker Compose:
$ docker compose up -d