I suggest you use KDETools OLM to Gmail Converter which allows users to save data in various file formats like EML, EMLX, Zimbra, MSG, HTML, etc. It is the direct technique that can safely perform Gmail files conversion process including all email attachments and other details as it is. You can also download the demo version first and migrate first 30 emails from each mailbox.