<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>inbox Archives &#8211; Structured Procrastination</title>
	<atom:link href="https://blog.adamspiers.org/tag/inbox/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.adamspiers.org/tag/inbox/</link>
	<description>because there&#039;s always something more interesting than what you should be doing</description>
	<lastBuildDate>Tue, 29 Aug 2017 10:19:02 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://blog.adamspiers.org/wp-content/uploads/2018/12/cropped-IMG_20160907_193859-PANO-c-7-32x32.jpg</url>
	<title>inbox Archives &#8211; Structured Procrastination</title>
	<link>https://blog.adamspiers.org/tag/inbox/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>managing your github notifications inbox with mutt</title>
		<link>https://blog.adamspiers.org/2014/10/05/managing-your-github-notifications-inbox-with-mutt/</link>
					<comments>https://blog.adamspiers.org/2014/10/05/managing-your-github-notifications-inbox-with-mutt/#comments</comments>
		
		<dc:creator><![CDATA[Adam]]></dc:creator>
		<pubDate>Sun, 05 Oct 2014 12:59:00 +0000</pubDate>
				<category><![CDATA[geek]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[inbox]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[notifications]]></category>
		<guid isPermaLink="false">http://blog.adamspiers.org/?p=1122</guid>

					<description><![CDATA[<p>Like many F/OSS developers, I&#8217;m a heavy user of GitHub. This means I interact with other developers via GitHub multiple times a day. GitHub has a very nice notifications system which lets me know when there has been some activity on a project I&#8217;m collaborating on. I&#8217;m a fan of David Allen&#8217;s GTD (&#8220;Getting Things [&#8230;]</p>
<p>The post <a href="https://blog.adamspiers.org/2014/10/05/managing-your-github-notifications-inbox-with-mutt/">managing your github notifications inbox with mutt</a> appeared first on <a href="https://blog.adamspiers.org">Structured Procrastination</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p> Like many <a href="http://en.wikipedia.org/wiki/Free_and_open-source_software">F/OSS</a> developers, I&#8217;m a <a href="https://github.com/aspiers">heavy user</a> of <a href="https://github.com/">GitHub</a>.  This means I interact with other developers via GitHub multiple times a day. GitHub has a very nice <a href="https://help.github.com/articles/about-notifications/">notifications system</a> which lets me know when there has been some activity on a project I&#8217;m collaborating on. </p>
<p> I&#8217;m a fan of David Allen&#8217;s <a href="http://gettingthingsdone.com/">GTD (&#8220;Getting Things Done&#8221;) system</a>, and in my experience I get the best results by minimising the number of inboxes I have to look at every day.  So I use another great feature of GitHub, which is the ability to have <a href="https://help.github.com/articles/configuring-notification-emails/">notification emails delivered directly to your email inbox</a>.  This means I don&#8217;t have to keep checking <a href="https://github.com/notifications">https://github.com/notifications</a> in addition to my email inbox. </p>
<p> However, this means that I receive GitHub notifications in two places. Wouldn&#8217;t it be nice if when I read them in my email inbox, GitHub could somehow realise and mark them read at <a href="https://github.com/notifications">https://github.com/notifications</a> too, so that when I look there, I don&#8217;t end up getting reminded about notifications I&#8217;ve already seen in my inbox?  Happily the folks at GitHub already thought of this too, and come up with a solution: </p>
<blockquote>
<p> If you read a notification email, it&#8217;ll automatically be marked as read in the Notifications section. An invisible image is embedded in each mail message to enable this, which means that you must allow viewing images from notifications@github.com in order for this feature to work. </p>
<p> &#x2013; <a href="https://help.github.com/articles/configuring-notification-emails/#shared-read-state">https://help.github.com/articles/configuring-notification-emails/#shared-read-state</a> </p>
</blockquote>
<p> But there&#8217;s a catch!  Like many Linux geeks, I use <a href="http://www.mutt.org/">mutt</a> for reading and writing email.  In fact, I&#8217;ve been using it since 1997 and I&#8217;m still waiting for another <a href="http://en.wikipedia.org/wiki/Email_client">MUA</a> to appear which is more powerful and lets me crunch through email faster.  However mutt is primarily text-based, which means by default it doesn&#8217;t download images when displaying HTML-based email.  Of course, it <b>can</b>.  But do I want it to automatically open a new tab in my browser every time I encounter an HTML attachment?  No!  That would slow me down horribly.  Even launching a terminal-based HTML viewer such as <a href="http://w3m.sourceforge.net/">w3m</a> or <a href="http://links.twibright.com/">links</a> or <a href="http://lynx.browser.org/">lynx</a> would be too slow. </p>
<p> So I figured out a better solution.  mutt has a <a href="http://www.mutt.org/doc/manual/manual-3.html#message-hook">nice <code>message-hook</code> feature</a> where you can configure it to automatically execute mutt functions for any message matching specific criteria just before it displays the message.  So we can use that to pipe the whole email to a script whenever a message is being read for the first time: </p>
<pre class="brush: bash; light: true; title: ; notranslate">
message-hook &quot;(~N|~O) ~f notifications@github.com&quot; &quot;push &#039;&lt;pipe-message&gt;read-github-notification\n&#039;&quot;
</pre>
<p> <code>(~N|~O)</code> matches mails which have the <code>N</code> flag (meaning new unread email) or <code>O</code> (meaning old unread email) set. </p>
<p> The <a href="https://github.com/aspiers/mutt.pub/blob/master/bin/read-github-notification"><code>read-github-notifications</code> script</a> reads the email on <code>STDIN</code>, extracts the URL of the 1-pixel read notification beacon &lt;img&gt; embedded in the HTML attachment, and sends an HTTP request for that image, so that github knows the notification has been read. </p>
<p> This means an extra delay of 0.5 seconds or so when viewing a notification email, but for me it&#8217;s a worthwhile sacrifice. </p>
<p> If you want to try it, simply <a href="https://raw.githubusercontent.com/aspiers/mutt.pub/master/bin/read-github-notification">download the script</a> and stick it somewhere on your <code>$PATH</code>, and then add the above line to your <code>~/.muttrc</code> file. </p>
<p> <b>UPDATE 2017/08/29:</b> Unfortunately I have since discovered that <a href="https://superuser.com/questions/1224053/configuring-mutt-to-pipe-a-mail-to-a-command-when-viewing-for-the-first-time">the above solution breaks when you try to save one of these notifications before reading it</a>.  Suggestions on how to fix this are most welcome! </p>
<p><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fblog.adamspiers.org%2F2014%2F10%2F05%2Fmanaging-your-github-notifications-inbox-with-mutt%2F&#038;title=managing%20your%20github%20notifications%20inbox%20with%20mutt" data-a2a-url="https://blog.adamspiers.org/2014/10/05/managing-your-github-notifications-inbox-with-mutt/" data-a2a-title="managing your github notifications inbox with mutt"><img src="https://static.addtoany.com/buttons/share_save_171_16.png" alt="Share"></a></p><p>The post <a href="https://blog.adamspiers.org/2014/10/05/managing-your-github-notifications-inbox-with-mutt/">managing your github notifications inbox with mutt</a> appeared first on <a href="https://blog.adamspiers.org">Structured Procrastination</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.adamspiers.org/2014/10/05/managing-your-github-notifications-inbox-with-mutt/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
