I'm working on a collaboration tool and I need the ability for the sender to add a label as defined by the recipient to an email.
I'm using a combination of InboxSDK within a Chrome Extension and a backend Rails application that talks to the Gmail API.
From what I can tell though, the Gmail message id is different for the sender and the recipient. So if the sender flags the message as relating to a label that the two have agreed upon, I can't see a way to programmatically label the message for the recipient.
Is there a unique identifier in a Gmail message that I could use as the key for both sender and recipient?
I've considered creating a hash of the email based on metadata and body, but was hoping someone might have some insight into how to make this connection between sender and recipient.