Slide 30
Slide 30 text
Step③ GmailThreadsからGmailMessageの取得
30
function myFunction(){
const threads = GmailApp.search('Step①で作成した検索条件');
Logger.log(threads); // [GmailThread, GmailThread, GmailThread, ...]
for(const thread of threads){
const messages = thread.getMessages();
Logger.log(messages); // [GmailMessage, GmailMessage, ...]
const message = messages[0]
}
}