Open GTP95 opened 2 years ago
There's currently no API for this.
If this is something people want and need, Gmail.js is largely developed by its own user-base to cover their own needs.
PRs are always welcome.
Some other people have asked about attachments too, if you search the issues.
Maybe this will help you cover your needs?
Thank you for your reply. I'm already using the method explained in #635, but I think it's specific for adding attachments while composing a new email. I'll give it a try anyway. I would implement a way of doing this myself, but a problem that I faced also in #717 is that it seems that IDs of elements inside Gmail's UI are generated by some script and change every time. So I don't know how to reliably select them to add elements inside them or to simulate a click on some element. Do you have any tips on how to select Gmail's UI elements?
Greetings,
I'm working on an extension that encrypts/decrypts Gmail's emails and after decryption, I need a way of adding the plaintext version of the attachment(s) to the original email that the user is viewing. Looking at the README, seems that this library only supports downloading the original attachments from the email, but not adding new ones. Does anyone know a way around this? Thank you for your help,
GTP