Hrm. This is very interesting. Your post made me think about using a couple of different software packages together. I could use IMAP Grab to pull all the email to disk on the server and then use
https://www.duplicati.com/ to push to the cloud storage of my choice. Sigh. Sounds like another project for me. Thanks! Your post was super helpful to get me thinking about how things might work.