Search code examples
emailgmailimapgoogle-schemas

Setting gmail's email category (social, promotion) through IMAP


I am implementing an email client and would like to allow the user move email across "Category" e.g. from "Primary" to "Social". How to do that through IMAP command or Gmail IMAP extension?


Solution

  • Gmail's category labels aren't exposed in the IMAP interface, but they are available in the Gmail API.