Once enabled, this add-on will automatically enable and disable your Gmail vacation responder based on OOO events in your Google Calendar.
- A daily job will look for OOO events in the next 24 hours. If it finds any, it will schedule Gmail's vacation responder to turn on and off based on the first OOO event's start and end time.
- If you have multiple OOO events in the same 24 hour window, it will process the next OOO event at the end of the current OOO event.
- Note: The automation will not catch an OOO event if it happens within an hour of the previous one. In those cases you will have to manually
Refresh
the data through the add-on.
- Note: The automation will not catch an OOO event if it happens within an hour of the previous one. In those cases you will have to manually
- Another job will monitor for changes to your calendar. If you make any OOO changes for today, it will make the necessary updates.
- The add-on does not modify the subject or message body of your Gmail's vacation responder. It simply enables or disables the vacation responder.
Note: Contrary to Google's documentation, or what you see on the Gmail browser UI, you can schedule the vacation responder to turn on or off at the hour/minute/second. The Gmail browser UI may show the wrong date, but it will turn on and off as expected.
- Add the add-on from [TODO: insert Google Workspace Marketplace link]
- Go into Gmail or Google Calendar and open the add-on from the sidebar
- Toggle the add-on to enable it
That's it!
If you don't want to get the add-on from the marketplace:
- Clone this repo
- Push/copy the the following files into your own Google Apps Script project
- appsscript.json
- core.js
- gmail.js
- helpers.js
- sidebar.js
- Follow the instructions in https://developers.google.com/apps-script/add-ons/how-tos/testing-workspace-addons#install_an_unpublished_add-on to install an unpublished add-on
For any questions, comments, concerns, feedback, or issues, submit a new issue.
See https://www.nachoapps.dev/av4g.
MIT License - https://github.com/imthenachoman/Auto-Vacation-for-Gmail/blob/main/LICENSE