问题
I can view the search results through the GmailApp
service. Which can be achieved through the following code:
var threads = GmailApp.search('from:github');
However, this would not affect the UI, since it is only the add-on performing the query. I would like to perform a search in the add-on and the search results must be seen in the Gmail application.
来源:https://stackoverflow.com/questions/50719814/how-to-initiate-a-gmail-search-from-the-addon