I'd like to retrieve messages in GMail/Inbox with a Google App Scripts. I'm able to retrieve labelled in a certain way with label.getThreads(). Now I'm moving away from labels and starting leveraging bundles: is there a way to get messages by bundle?
I don't know if GMail/Inbox uses a special label when bundling, in that case how do I get the names of these special labels?
GmailApp class doesn't contain anything helpful as far as I can understand.