gmail.js icon indicating copy to clipboard operation
gmail.js copied to clipboard

listen to sender_change while composing message

Open ericdude4 opened this issue 6 years ago • 3 comments
trafficstars

When multiple gmail accounts are added to gmail, it is possible to change the email address which is being used to send the email while an email is being composed.

Can we add a "sender_change" observable event? I have been trying, but I am having trouble finding the right class name to register the event handler to.

ericdude4 avatar Jul 30 '19 13:07 ericdude4

Can we add a "sender_change" observable event?

In general, I'm never opposed to useful APIs, events or functions in GmailJS.

I have been trying, but I am having trouble finding the right class name to register the event handler to.

That said, I won't implement APIs I'm not going to use myself, just for the sake of others. That's not how open-source works.

Open-source works when people are willing to scratch their own itch. So if you want this, you will have to build it yourself.

But if you do that, we will be happy to review, test and merge. Sounds good?

josteink avatar Aug 01 '19 10:08 josteink

Open-source works when people are willing to scratch their own itch. So if you want this, you will have to build it yourself.

Of course! Would you be able to point me somewhere to find incite as to how the CSS classes hang together in Gmail? It all seems so cryptic.

I will make a PR.

ericdude4 avatar Aug 01 '19 12:08 ericdude4

Would you be able to point me somewhere to find incite as to how the CSS classes hang together in Gmail?

I don't think there's a reference guide. Almost all code in Gmail.JS is reverse-engineered.

josteink avatar Aug 01 '19 12:08 josteink

Old issue is old. Closing.

josteink avatar Oct 11 '23 08:10 josteink