I've been keeping the downstream equivalent bug in Debian updated, so if you are curious, keep track of that. In short, the best way to do this IMHO is to enhance Python's mailbox library, port archivemail to the newer class hierarchy and to python 3.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736327