前回のおさらいと今回のお題 前回作成したスクリプトはこちらです。 function searchContactMail() { const query = '"このメールは 株式会社プランノーツ http://plannauts.co.jp のお問い合わせフォームから送信されました"'; const start = 0; const max = 10; const threads = GmailApp.search(query, start, max); const messagesForThreads = GmailApp.getMessagesForThreads(threads); for(const messages of messagesForThreads){ console.log(messages[0].getSubject()); } } このスクリプトは以下のような流れ