{"id":1522,"date":"2020-07-04T19:39:44","date_gmt":"2020-07-04T19:39:44","guid":{"rendered":"https:\/\/sp2hari.com\/?p=1522"},"modified":"2020-07-04T19:39:46","modified_gmt":"2020-07-04T19:39:46","slug":"inbox-pause","status":"publish","type":"post","link":"https:\/\/sp2hari.com\/index.php\/2020\/07\/04\/inbox-pause\/","title":{"rendered":"Inbox Pause"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I follow <a rel=\"noreferrer noopener\" href=\"https:\/\/flow-e.com\/inbox-zero\/\" target=\"_blank\">Inbox Zero<\/a> to take control of my inbox. Initially, it was great and &#8216;felt&#8217; very productive. But later at some point, it became an addiction to check email very often. The urge to keep the email at zero made me check inbox regularly. After a few weeks, I wasn&#8217;t sure if I was even doing my job. I was responding to my email fast, getting the inbox clean, but that isn&#8217;t the only part of my job. I had to find the fine balance between Inbox Zero vs doing something really productive. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then I started using the <a rel=\"noreferrer noopener\" href=\"http:\/\/www.inboxpause.com\/\" target=\"_blank\">Boomerang Chrome extension<\/a> especially for the &#8216;Inbox Pause&#8217; feature. While Boomerang is great and is absolutely necessary for anyone trying to manage their email better, I wasn&#8217;t so happy to pay for a single feature. Especially, this was a free earlier under a different chrome extension. Also, I didn&#8217;t want to install one more extension and bloat my Google Chrome. Finally, I realized I can achieve the same using Google Scripts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This blog post is a 4 step process to implement Inbox Pause in Gmail. No need to install any extensions or share data with any other third party. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Create a Label<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Create a new label in Gmail called &#8220;Inbox-Paused&#8221;.  Make sure the label name is exactly the same and it is case sensitive (you will know why when you look at the code).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"524\" height=\"263\" src=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-1.png\" alt=\"\" class=\"wp-image-1525\" srcset=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-1.png 524w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-1-300x151.png 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">To make sure one you don&#8217;t see &#8220;Inbox-Paused&#8221; in the label list (to reduce the urge to check email often), make sure &#8216;Show in label list&#8217; and &#8216;Show in message list&#8217; are both marked as hide. If you prefer, you can keep this as &#8216;show&#8217; for the initial few weeks and then change it to &#8216;hide&#8217;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"99\" src=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-2-1024x99.png\" alt=\"\" class=\"wp-image-1526\" srcset=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-2-1024x99.png 1024w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-2-300x29.png 300w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-2-768x74.png 768w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-2.png 1188w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Setup the Project with code<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Head to <a href=\"https:\/\/script.google.com\/\">https:\/\/script.google.com\/<\/a> and click on the &#8216;New Project&#8217; button in the top left. Paste the following code in the code editor and save the file. When you save the file for the first time, give a project name (anything you prefer).  If you have multiple Google accounts, make sure you create the project with the same Google account where you created the label.<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">function unPause() {\n  \n  \/\/Get the label with the Name \"Inbox-Paused\"\n  var pausedLabel = GmailApp.getUserLabelByName(\"Inbox-Paused\");\n\n  if (pausedLabel) {\n    \/\/Get all the threads under the label\n    var threads = pausedLabel.getThreads();\n    \n    \/\/Loop through all the threads\n    for (var i = 0; i &lt; threads.length; i++) {\n      \n      \/\/Move the thread to Inbox\n      threads[i].moveToInbox();\n      \n      \/\/Remove the label \"Inbox-Paused\" from the current thread\n      pausedLabel.removeFromThread(threads[i]);\n    }\n  }\n}<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The code is just few lines and well commented. All it does is move the emails (aka threads) from the label &#8216;Inbox-Paused&#8217; to Inbox. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-3-1024x482.png\" alt=\"\" class=\"wp-image-1534\" srcset=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-3-1024x482.png 1024w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-3-300x141.png 300w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-3-768x362.png 768w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-3-1536x723.png 1536w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-3-2048x964.png 2048w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-3-637x300.png 637w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Create the trigger<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Click on Edit -> Current project&#8217;s trigger to view all the triggers. For the first time, you won&#8217;t see any triggers there. It is time to create a new trigger. Click on the &#8216;Add Trigger&#8217; on the bottom right to create a new trigger. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"811\" src=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-4.png\" alt=\"\" class=\"wp-image-1535\" srcset=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-4.png 722w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-4-267x300.png 267w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Most of the default options should work as it. If needed, you can change the &#8216;Select hour interval&#8217; to something else instead of every hour. In fact, if this is time first time you are setting up this script, I would recommend &#8216;Every hour&#8217; since anything beyond that increases the anxiety of missing out on the emails. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4: Send all Emails to Inbox-Paused Label<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Create a filter, which chooses all the emails. The From &#8220;*&#8221; and Has the words with &#8220;label:inbox&#8221; are the only two things needed. If you want some emails to reach your inbox directly without any pause, you can use the option &#8220;Doesn&#8217;t have&#8221;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"485\" src=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-5.png\" alt=\"\" class=\"wp-image-1536\" srcset=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-5.png 722w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-5-300x202.png 300w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-5-447x300.png 447w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-8-1024x765.png\" alt=\"\" class=\"wp-image-1542\" width=\"768\" height=\"574\" srcset=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-8-1024x765.png 1024w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-8-300x224.png 300w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-8-768x574.png 768w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-8-402x300.png 402w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-8.png 1526w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"657\" src=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-7.png\" alt=\"\" class=\"wp-image-1538\" srcset=\"https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-7.png 723w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-7-300x273.png 300w, https:\/\/sp2hari.com\/wp-content\/uploads\/2020\/07\/image-7-330x300.png 330w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">This has been working well for the last 6 months and helped me get a lot productive. Now, there is no anxiety to check email every few minutes and I am also able to keep the inbox at zero.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I follow Inbox Zero to take control of my inbox. Initially, it was great and &#8216;felt&#8217; very productive. But later at some point, it became an addiction to check email very often. The urge to keep the email at zero made me check inbox regularly. After a few weeks, I &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,16,17],"tags":[],"class_list":["post-1522","post","type-post","status-publish","format-standard","hentry","category-code","category-email","category-productivity"],"_links":{"self":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/1522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/comments?post=1522"}],"version-history":[{"count":23,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/1522\/revisions"}],"predecessor-version":[{"id":1554,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/posts\/1522\/revisions\/1554"}],"wp:attachment":[{"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/media?parent=1522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/categories?post=1522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sp2hari.com\/index.php\/wp-json\/wp\/v2\/tags?post=1522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}