Monday

HOW TO SNOOZE YOUR GMAIL MESSAGES

There are some messages which we could had received later. In that situation you move the messages to another folder and forgot it, this must be a problem for you to remember all messages in that folder and if you want a particular message to open later.

Our team has introduced this problem and elucidated this this problem, as like your mobile phone alarm you can also snooze your Gmail messages, you can see your email's in your Gmail account inbox 1-7 days later. after snoozing label with the appropriate number of days they will reappear in the inbox according to the specified number of days. These are the steps you must follow to snooze your email's, we will make use of GOOGLE APPS SCRIPT


1). CREATING SCRIPT


(i) Flip over to google docs and select create new > spreadsheet.
          Now choose tools > script editor which comprises "functionmyfunction(){}" that can be deleted.


(ii) Thereafter deleting the code, copy and paste the given code.


var MARK_UNREAD = false;
var ADD_UNSNOOZED_LABEL = false;
function getLabelName(i) {
return "Snooze/Snooze " + i + " days";
}
function setup() {
// Create the labels we'll need for snoozing
GmailApp.createLabel("Snooze");
for (var i = 1; i <= 7; ++i) {
GmailApp.createLabel(getLabelName(i));
}
if (ADD_UNSNOOZED_LABEL) {
GmailApp.createLabel("Unsnoozed");
}
}
function moveSnoozes() {
var oldLabel, newLabel, page;
for (var i = 1; i <= 7; ++i) {     newLabel = oldLabel;     oldLabel = GmailApp.getUserLabelByName(getLabelName(i));     page = null;     while(!page || page.length == 100) {       page = oldLabel.getThreads(0, 100);       if (page.length > 0) {
if (newLabel) {
// Move the threads into "today's" label
newLabel.addToThreads(page);
} else {
// Unless it's time to unsnooze it
GmailApp.moveThreadsToInbox(page);
if (MARK_UNREAD) {
GmailApp.markThreadsUnread(page);
}
if (ADD_UNSNOOZED_LABEL) {
GmailApp.getUserLabelByName("Unsnoozed")
.addToThreads(page);
}
}
// Move the threads out of "yesterday's" label
oldLabel.removeFromThreads(page);
}
}
}
}



(iii) Now tick on file and save it with the desired name.

2). CREATING LABELS

(i) choose setup from select a function.






(ii)  Selest the run icon fronm the left.

(iii) Till the function will run you will be asked for the permission to Gmail to run the script.

(iv) Later you will get a message which will confir that "you can run the script now".

(v) Now you must go to your Gmail account and reload the page. if you are able to watch nested labels in your Gmail like shown below you are done with it.



MAKE THE SCRIPT RUN EVERYDAY


Now you have prepared the labels for snoozing your messages in Gmail and what if you want to make the script run daily, for this


(i) Choose triggers > current project triggers. Now tick on "No trigger setup".

(ii) There will be a run drop-down select move-snoozes, Time-driven from from events drop-down and Day timer and Midnight to 1 am should be set to next two drop-downs.

(iii) Last and the most important step is to save it.

USE SNOOZE LABELS IN GMAIL

we have done almost everything, one small thing remaining to snooze your Gmail messages, open it and choose Move to > snooze/snooze days, from 1-7 days. thereafter you have done with this, Email will be shown in your Gmail inbox after the days you have selected.

No comments:

Post a Comment