4 ms·if (msg.source != "gmail"): msg.drop()by idop 5y agoif (msg.source != "gmail"): msg.drop()deleted 5y ago[deleted]krono 5y agoGave you the opportunity to make that joke for free, the least you could have done was write it in GoogleLang ;)easrng 5y agovar message = GmailApp.getMessageById(newMessageId); if(!message.getFrom().match(/@gmail.com>?$/)) { message.moveToTrash(); }