Search code examples
google-apps-scriptgmail

Will a function be added to Gmail App Script API to get the type of star assigned to a message?


Gmail settings allows to set a star of a different type among several ("yellow-star", "red-star", "green-check", ...).
The number of star types that can be used can be set in Gmail settings menu.

Google Apps Script's Gmail services includes a GmailMessage::isStarred that just returns a Boolean. It does not provide the type of star that is set.

Will this function be modified, or an other be added, to return which type of star is set to a message ?


Solution

  • It seems that wishing for that to happen. The best place is fill an "Enhancement request" on Apps Script issue tracker.

    Anyway, since we're on this subject, you can get all messages of a specific star by issue the appropriate search on gmail.