User had large number of email in multiple folders/subfolders in Gmail, we connected Outlook using IMAP to the Gmail account and downloaded all the email to a .pst file. we then set up a new Outlook profile connected to Office 365 and the the .pst file and uploaded all the email to Office 365 and waited until it had synced and was visible in OWA.
The first problem was that the folders were IMAP folders and had an incorrect filter set which prevented the emails from showing. We fixed this using the technique shown in Slipstick (http://www.slipstick.com/developer/code-samples/change-outlook-folder-type-export/
) to change the folder type. The email is all working except the user cannot see the folders on his iPhone. If I create a new folder and copy emails to it this is visible but the exported folders and their contents do not show up in the "native" iphone email cleint.
Any help in how to solve this would be much appreciated.