How to Process Only Truly New Gmail Messages Using Gmail API and Pub/Sub Notifications?
I’m developing an application using the Gmail API and Google Pub/Sub to process incoming emails. My goal is to only process truly new messages and avoid reprocessing messages that have been moved between labels (e.g., moving a message back into the inbox).