问题
Is it possible to automatically trigger a Google apps script with gmail when I get a new email?
回答1:
Not possible. Instead use a time trigger to check for new mails to process. One way to do it is by using a gmail rule to label the ones you will process. Then only get emails with that label.
来源:https://stackoverflow.com/questions/27754852/run-script-when-new-email-arrives-on-gmail-with-google-apps-script