I want my Google script to parse all emails within a label. But just once. The emails come from my bank. They store transaction details. Because I use thread conversation view I worry that the script will either - process one message more than once or miss a message in a case I mark the thread with a label let's say "done" once the email message was processed.
The transaction details are coming with the same subject, so all of them will be part of one thread. I do not want to store message ID or something like outside Google Script.
Could you think of any solution?
I was thinking that I can add email ID to the thread but the I would end up with too many labels.
I might be able to use Gmail API as suggested here
- GmailApp - Add label to specific message, not the thread and
- Google Apps Script - Changing label of individual email in Gmail
but I do not know how to check if a particular message got specific label.