I use “Atom” feeds to read the content of gmail at the addresshttps://mail.google.com/mail/feed/atom/name where name is either empty (to check the inbox) or a user-defined label (even nested). To parse the result, it is useful to read the XML field fullcount, which gives the number of unread messages. With Gmail internal labels, like starred, important, sent, trash, drafts, spam, all, however, the fullcount is always 0. I recently discovered here that for the important label one should use the less intuitive name ^iim. With ^iim the fullcount is set correctly ! Does anyone know if there is a complete list of such labels available ?
Watching: gmail atom feed

They are called system labels and the Gmail Content Provider in Android documents a few:
ALL_MAIL ^allDRAFTS ^rINBOX ^iINBOX_CATEGORY_FORUMS ^sq_ig_i_groupINBOX_CATEGORY_PRIMARY ^sq_ig_i_personalINBOX_CATEGORY_PROMOTIONS ^sq_ig_i_promoINBOX_CATEGORY_SOCIAL ^sq_ig_i_socialINBOX_CATEGORY_UPDATES ^sq_ig_i_notificationPRIORITY_INBOX ^iimSENT ^fSPAM ^sSTARRED ^tTRASH ^k
Thanks for contributing an answer to Stack Overflow!
Please be sure to answer the question. Provide details and share your research!
But avoid …
Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
See more: How To Set Up Email Quarantine In Gmail For G Suite Subscribers
Post Your Answer Discard
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
Not the answer you’re looking for? Browse other questions tagged gmail atom-feed or ask your own question.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.5.10.39250
See more: Creating A Gmail Account Step 1, Account Recovery
Stack Overflow works best with JavaScript enabled

Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.