![]() ![]() GmailApp.createLabel(getLabelForDayOfWeek("Sunday")) GmailApp.createLabel(LABEL_THIS_WEEKEND) Var LABEL_NEXT_MONTH = LABEL_BASE + "/Next Month" Var LABEL_NEXT_WEEK = LABEL_BASE + "/Next Week" Var LABEL_THIS_WEEKEND = LABEL_BASE + "/This Weekend" Var LABEL_TOMORROW = LABEL_BASE + "/Tomorrow" Var LABEL_TONIGHT = LABEL_BASE + "/Tonight" Var LABEL_MIDNIGHT = LABEL_BASE + "/Midnight" Var LABEL_BASE_TOD = LABEL_BASE + "/zTime" Var LABEL_BASE_MO = LABEL_BASE + "/zMonth" Var LABEL_BASE_DOW = LABEL_BASE + "/zDay" Var LABEL_BASE = "_Z" // The label to create all snooze labels under (it's suggested that you don't change this) I wouldn't recommend changing these values but it shouldn't hurt anything if done right :) Var REAPPEAR_UNREAD = true // Decide if you want to mark a thread as unread when it reappears in the inbox Var REAPPEAR_LABEL = "_Action" // Full label path to apply when a message reappears in the inbox (leave blank "" to not set a label) Var HOURS_UNTIL_LATER = 3 // Number of hours when something snoozed until "Later" should appear ex: 17=5pm) representing when something snoozed until "Tonight" should reappear Var TONIGHT_HOUR = 17 // Hour (on a 24 hour clock. Var TIMEZONE = "America/Detroit" // Your timezone Set these values according to your needs * Added additional parseInt()s to moveHourlySnoozes * Fixed moveDailySnoozes to correctly handle the current DOW thanks to "Jeff Hirsch" * Fixed getLabelForHour to correctly handle am/pm thanks to "benlarge" * moveDailySnoozes() - Daily between Midnight to 1 am * 2) Run the "setup()" function using the method drop down and run arrow * 1) Fill in the values below (or just use the defaults) If you like it or have suggestions, please drop me a line * use from any mail client (web, Android, iPhone, etc). * the iPhone "Mailbox" app with the added benefit of not having to hand over your credentials, and being able to * This is a massively modified and more powerful GMail snooze script that mirrors much of the functionality of These are the suggested options to use, but there are more specific labels you can use for tighter control: For example, Move to –> _Z/Tonight to have the email reappear at the time you selected (default: 5pm). To use the functionality provided by the script just move any email to one of the snooze labels. ![]() ![]() Paste the code from below into the script See the “Setup” instructions in the comment block at the top of the code or refer to the images below… Personally, I’m using the script with a Dispatch “quick action” to easily triage my inbox. Just attach labels or move your messages to the any of the snooze labels and let the script do the rest. This time was different.īelow you’ll find the setup instructions that will give you MailboxApp like functionality in something you completely control and that you can use from any email client. Maybe a year ago I came across a Gmail snooze script, but didn’t really take the time to understand it or tweak it to my needs. Naturally the answer was smacking me in the face. So I asked that question that every engineer asks: “How can I do this better?”. Then I did and realized I didn’t particularly care for the interface or for giving up credentials to yet another service (though I do have 2 factor authentication setup). I got caught up in the MailboxApp fever and watched the little counter until I could get my hands on the app. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |