Skip to content

Instantly share code, notes, and snippets.

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))