Question

I'm writing some code which will connect to a user's Google apps email account via IMAP and make a complete archive of everything. In this process, I would like to back up the google chat history that is located in the "Chats" label. To do this however, I need to tick the "Show in IMAP" checkbox in the labels window. Is there a way to set this automatically via the Google admin api? I know I have access to read the user's labels and create my own, but I didn't see any reference to modifying existing labels or setting this value.

Was it helpful?

Solution

Unfortunately there is no way to programatically set Chats to show in IMAP. Your app should attempt to access the folder and if it's not visible via IMAP, prompt the user with instructions for manually setting the Chats label to visible via IMAP.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top