I doubt anyone here is super-jazzed to add golang to the NMH codebase, but this looked interesting:
https://proton.me/blog/gluon-imap-library Roughly, the Proton Mail people build a library to handle some of the same sorts of IMAP problems that nmh conceptually has. If that's not interesting, please excuse the spam, and congrats on the 1.8 release. Still stuck in gmail/webmail hell... ~Chad