There’s another great alternative called “imap-backup” [0], which I use to backup my mail accounts.
It can sync, incrementally backup and/or restore e-mail accounts.
It runs great as a container, does its job and exits. If anyone wants an ARM version, I maintain a container at [1].