Moving Archived Emails from Gmail to iCloud
Ever since Google dropped support for Exchange syncing in Gmail (AKA Google Sync) I have been looking for a solid push-email service (ideally one that is free). I have been testing iCloud mail and it seems to provide the reliable syncing across devices that I used to have through Google.
The problem now is that if I am going to access my email through iCloud, I would like to use the same service to see all of my archived emails. I tried to figure out a reliable way to transfer over 17,000 emails (about 4GB) from my Gmail archive to my new iCloud account. I have the 20GB storage plan from Apple so there is plenty of space available on the server. Every method I have tried results in an incomplete transfer of the emails, typically after transferring between 300 and 1,500 emails.
Here is what I have tried:
-Drag and drop from Gmail IMAP folder to iCloud IMAP folder using the Yosemite Mail app.
-Drag and drop from local .mbox file (produced by Google Takeout) to iCloud IMAP folder via Mail app.
-Use of Mail "Rules" to copy/move emails to the new iCloud server.
-Something with Automator?
All of these methods end with an error saying that connection to the iCloud server has timed out. If it was a "copy" operation, I have no efficient way of telling what emails are left to transfer. More alarmingly, if it was a "move" operation, I notice that the source folder is now empty even though only about 5% of the emails are at the new location. Luckily, I had backups.
Any suggestions on how to perform this migration?
MacBook Pro, OS X Yosemite (10.10.3)