I have the best solution to resolve your issue regarding the conversion of Mac OLM to Gmail. It`s my personal experience working with this tool which was suggested to me by one of my professional friends. It application 100% supports the conversion of emails, contacts, etc. Exclude Empty folders options are also available for filtration. https://www.kdetools.com/mac/olm/gmail/