{"id":8535,"date":"2014-11-03T19:44:58","date_gmt":"2014-11-03T19:44:58","guid":{"rendered":"https:\/\/wp.okra.host\/article\/achieving-inbox-zero\/"},"modified":"2021-03-07T14:24:57","modified_gmt":"2021-03-07T13:24:57","slug":"achieving-inbox-zero","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/achieving-inbox-zero\/","title":{"rendered":"Achieving Inbox Zero"},"content":{"rendered":"<h2 id=\"overview\" >Overview<\/h2>\n<p><a href=\"http:\/\/www.43folders.com\/izero\">Inbox Zero<\/a>\u00a0is a\u00a0rigorous approach to keep your inbox free of e-mail &#8211; or at least nearly empty. Any mail that is read will be migrated to an Archives IMAP folder\u00a0after 5 minutes. Any mail that is starred in an e-mail client will, however, remain in the inbox until unstarred.<\/p>\n<div id=\"attachment_156\" style=\"width: 485px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2014\/11\/starred-test.png\" rel=\"lightbox-0\" data-lbwps-width=\"475\" data-lbwps-height=\"122\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2014\/11\/starred-test.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-156\" loading=\"lazy\" class=\"wp-image-156 size-full\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2014\/11\/starred-test.png\" alt=\"Example of an e-mail that remains resident after starring in Thunderbird.\" width=\"475\" height=\"122\" \/><\/a><\/p>\n<p id=\"caption-attachment-156\" class=\"wp-caption-text\">Example of an e-mail that remains resident after starring (marking &#8220;important&#8221;) in Thunderbird.<\/p>\n<\/div>\n<h2 id=\"solution\" >Solution<\/h2>\n<p>This can be achieved with a simple\u00a0shell script that routinely runs every 5 minutes. Create a file named <code>inboxzero.sh<\/code> or simply download the script attached under\u00a0<em>RESOURCES<\/em>. Upload this file to your home directory, then visit\u00a0<strong>Dev<\/strong> &gt;\u00a0<strong> Scheduled Tasks<\/strong> to setup a recurring task to run the script (<a title=\"Is terminal access available?\" href=\"https:\/\/kb.okra.host\/terminal\/is-terminal-access-available\/\"><em>terminal access required<\/em><\/a>). Specify <code>*\/5<\/code> for <em>minute<\/em>, and\u00a0<code>*<\/code> for all other time parameters. Under <em>Command<\/em>, specify <code>\/bin\/bash \/home\/user\/inboxzero.sh<\/code> \u2013 replace\u00a0<code>user<\/code> with your username.<\/p>\n<pre>#!\/bin\/sh\nARCHIVE=\".Archives.$(date +%Y)\"\nMAIL=\"Mail\/\"\n# Time, in minutes, to hold a read, unstarred e-mail\nHOLD=5\n\n[[ ! -d \"$HOME\/$MAIL\/$ARCHIVE\" &amp;&amp; maildirmake \"$HOME\/$MAIL\/$ARCHIVE\" ]]\n\nfind $HOME\/$MAIL\/cur -type f -cmin +$HOLD -mmin +$HOLD -regex '[^:]*:[^F]*$' -regex '[^:]*:.*S.*$' -exec mv {} $HOME\/$MAIL\/$ARCHIVE\/cur\/ ;<\/pre>\n<h2 id=\"resources\" >Resources<\/h2>\n<p><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2014\/11\/inboxzero.zip\">Download<\/a>\u00a0inbox-zero\u00a0script.<\/p>\n<blockquote>\n<pre>sha-256 sum: e64a95aabd47dfb5fff9d1b2ce9483fe9de2edf28875b27bd992bf5c327c8e61\nmd5sum:\u00a0f39fa0f67adda20d371758f5505b1bd5<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Overview Inbox Zero\u00a0is a\u00a0rigorous approach to keep your inbox free of e-mail &#8211; or at least nearly empty. Any mail that is read will be migrated to an Archives IMAP folder\u00a0after 5 minutes. Any mail that is starred in an e-mail client will, however, remain in the inbox until unstarred&#8230;.<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[58],"ht-kb-tag":[],"class_list":["post-8535","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-e-mail"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8535"}],"version-history":[{"count":1,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8535\/revisions"}],"predecessor-version":[{"id":8536,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8535\/revisions\/8536"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media\/8537"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8535"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8535"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}