This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function processInbox() | |
{ | |
var recipient = '[email protected]'; | |
var label = GmailApp.getUserLabelByName("Phishing"); | |
var threads = GmailApp.search("newer_than:24h"); | |
for each (thread in threads) | |
{ | |
for each (message in thread.getMessages()) | |
{ | |
if (isTargetMessage(message)) |