KartikTalwar / gmail.js

Gmail JavaScript API
MIT License
3.74k stars 456 forks source link

Applying a label #754

Open kstubs opened 1 year ago

kstubs commented 1 year ago

First: is there a better place for a general conversation and usage of gmail.js?

I need to manage labels for a message. I see that the api is equipped to respond to labels be added, moved, deletec, etc. but not seeing a mechanism to add a label to an existing email message.

Thank you,

Karl..

kstubs commented 1 year ago

For anyone that is following along here.. I have a PUNT and that is using Gmail's own filtering capability to apply my label. In my case, my reply email contains specific text which text triggers my filter that then applies my label. I spent some time analyzing their menu selectors and the are quite obfuscated and dynamic, so without much time and experimentation, I gave up trying to dynamically click their label menu option which would draw their submenu so then I could discover the parameters to send back in an ajax request (and so forth)...