Changes needed so I can use your go-imap for imap2json

https://github.com/kaihendry/imap2json

Many thanks,