Gmail – Force sync of Outlook folders to Gmail labels

gmailimapoutlook

My desktop Outlook (2016) is configured as an IMAP client of Gmail.

I lovingly arrange my messages within Outlook folders. This is synced to Gmail and appears as labels.

However, (at least) two of my Outlook folders have disappeared from Gmail. The messages can still be found on the server, but they contain no labels. The labels list doesn't show the labels corresponding to folders. Searching for the folders using the "IMAP folders" from the Outlook context menu yields no results.

In short – the Outlook folders remain, the messages remain both on the server and on the client, the Gmail labels disappeared.

So, my question is: How do I "sync" the Outlook folders to Gmail and have Gmail label the correct messages, those that are stored within my desktop Outlook stores in those folders?

Edit: I noticed now that the Outlook folder names have changed to contain the suffix "(This computer only)"

Edit: Found and posted a workaround, but would love it if anyone can tell what caused this mess and how to prevent it from happening!

Best Answer

OK, seeing the "this computer only" name change gave me a clue. I know how to solve this, but I don't know what caused it. And there's an extra, "keep safe" step to the solution.

A. Create a new folder. For example, my folder was called "A/B/External (This computer only)", and "A/B/Family (This computer only)", so I've created "A/B/New External" and "A/B/New Family".

B. I verified that during sync corresponding nested labels were created by Gmail.

C. I moved all the messages from each of the two folders to the corresponding "New" one.

Now sync takes care of labeling the messages on the server!

The extra credit step: Search Outlook for other folders that were mysteriously made "(This computer only)". Do this by using the Search ribbon's "+more" drop down, and then folderpath:(computer only). Then, if such folders are found, handle them.