The first step of your
migration process is to configure your GMail account.
1. IMAP Access
In order to see your messages in Outlook, you'll need to configure your GMail account first. You can do this under

=> Settings =>
Forwarding and POP/IMAP.
Select Enable IMAP.
OPTIMIZATION #1 (recommended)
In order to speed up the conversion process, it makes sense to decouple deletion of a message in Outlook's cache from the actual expunge of that e-mail. This way, Outlook will mark messages for deletion first, and communicate them in one shot to the server at the end of the conversion. You do this by selecting "Auto-Expunge off".
Once you do this, "Archive the message" should be selected below. You must do this so that all labels can be migrated over. This allows to migrate each label individually.
OPTIMIZATION #2 (consider)
I've found that the conversion speeds up considerably, if the number of messages in a folder are small. It also may be that Outlook uses more memory traversing large folders, slowing the processor, and the conversion process down. This also may be related to the size of the Outlook cache file - where Outlook downloads the IMAP folders' contents. Either way, one way to control the size of the cache file and the required resident memory is to limit the number of messages in each folder.
I measured about 15-30 seconds/item/label conversion speed when the folder size was unlimited. This reduced to 1-5 seconds/item/label when limiting folder size at 1000.
NOTE: If you limit the folder size, you will need to do the conversion in multiple iterations:
- download messages (up to the limit) to local Outlook cache
- convert downloaded messages
- purge the messages on the GMail server, so new messages can be downloaded
NOTE: there is a link at the bottom of this page with instructions to set up your Outlook to access your GMail messages.
2. Labels
Control your Outlook cache size
Another way to control the size of the Outlook cache is to select which labels show up in the IMAP cache. Under

=> Settings =>
Labels, you can select for each label, whether or not to "Show in IMAP". Here you can also see how many conversations are labeled with a certain label. This allows you to gauge the size of the Outlook cache.
E.g. if you have 60000 conversations (this you know by checking the number when
looking at all your mail. It will say something like 1-50 of 60,000), you are using 6GB (this shows at the bottom of your GMail page), and you have a total of 60,000 conversations under all labels, you can estimate your total cache to be 12GB. However, you also need to include the number of messages in your
Inbox,
Starred and
Important, as these are not listed on the Labels page.
Exchange compatible label names
Outlook 2010 does not allow category names to start/end with space, or to contain comma (,) or semicolon (;). Rename all of your labels that contain any of these letters. Gmail labels already cannot start/end with space.
3. Decide what to do with your Trash
A. Do not migrate trash
The easiest option is to not migrate your trash. Then, for best performance, go to your
trash, and click "Empty Trash now".
B. Migrate trash with all labels
Messages in the trash retain their labels; however, these are not exported to the IMAP interface (deleted messages will not appear under their labeled directories). If you want to migrate the messages in the trash with all their labels, you will need to add your own "trash" label. You can do this by
2. Select all mail on the scree on the checkbox
3. If you have more than 50 messages, a link will appear "Select all X conversations in Trash". Click that link.
4. Move all mail in the trash under a new label (e.g. "T"). Make sure you move to a newly created label so that you can keep messages from your trash separately.
During conversion, you can designate this label to go to your Trash folder.
NOTE: you can use this trick to separate messages with certain labels in your trash to delete them permanently. It is because now that you freed up your trash, you can selectively put only messages that you want to delete permanently into it.
NOTE: if you are migrating your trash with labels, this will increase the size of the Outlook cache similarly to having multiple labels on regular messages, as these messages will now appear in the folders of all of their labels.
C. Migrate trash without labels
If you want to migrate your trash without your labels, you can keep them where they are in GMail. You will need to set your trash label to "Trash" during migration.