I’m using the GMail Notifier on OSX to notify me of new messages. I have a number of filters set up to automatically star () potentially interesting posts and I wanted the Notifier to only tell me when I had new starred messages.
I found how to do this for labelled messages and tried it with the label name set to “starred”. Sure enough it works :-)
defaults write com.google.GmailNotifier Label -string "starred"