I am hoping to write a Google Script that will archive all emails that are older than some date. And in that script I was going to add a custom button, like in Google Sheets, so that I can run my script.
Does the functionality exist in Google Script to add a menu/button to the UI in Gmail ? If so how can I implement this?
It's not possible to modify the GMail UI with Google Apps Script, unfortunately.
As an alternative, you could create a contextual gadget to put your "archive all" button on every message in your inbox. See the Gmail Platform docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With