79254128

Date: 2024-12-05 09:55:34
Score: 0.5
Natty:
Report link

I found a workaround to this from the following source, the script that gets only the messages and not threads is:

function listMessages () {
  // Only return messages matching the specified query.
  var msgs = Gmail.Users.Messages.list('me', {'q':'label:InProcess'}).messages;

  msgs.forEach(function (e){
   var message = GmailApp.getMessageById(e.id); // Fetch message by its ID
   var plainBody = message.getPlainBody();
  });

}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: EagleEye