Tag Info

New answers tagged

0

You would need to write some sort of regex to extract that string from the message. var threads = GmailApp.getInboxThreads(); for (var t in threads) { var messages = threads[t].getMessages[]; var text = messages[0].getPlainBody(); var matches = /From:(.*?)<(.*?)>/gi.exec(text); if (matches) Logger.log(matches[1] + " :: " + ...



Top 50 recent answers are included