- Create new Google Apps Script
- Paste files here
- Set your calendar id and source calendar's ids and their titles in setting.gs
- Add Google Calendar API as a service from left side of the editor
- Share calendars with target calendar at Google Calendar
- Test and authorization
- Set trigger on GAS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo kill $(ps -ef | grep "\[healthd\]" | awk '{ print $2 }') |
null
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FORWARD_DEST="[email protected]" | |
function forwardAndLabelStarredEmails() { | |
var laterLabel = GmailApp.getUserLabelByName("@later"); | |
if (!laterLabel) { | |
laterLabel = GmailApp.createLabel("@later"); | |
} | |
var threads = GmailApp.search('is:starred'); | |
var emailParts = Session.getActiveUser().getEmail().split('@')[1].split('.'); |