<?xml version="1.0"?>
<rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:dcterms="http://purl.org/dc/terms/"
     xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tyler Cipriani: pages tagged mutt</title>
<link>https://tylercipriani.com/tags/mutt/</link>
<atom:link href="https://tylercipriani.com/tags/mutt/index.rss" rel="self" type="application/rss+xml"/>

<description>Tyler Cipriani</description>
<generator>ikiwiki</generator>
<pubDate>Tue, 14 Feb 2017 15:11:05 +0000</pubDate>
<item>
	<title>Mutt</title>

	<guid isPermaLink="false">https://tylercipriani.com/blog/2016/05/25/mutt/</guid>

	<link>https://tylercipriani.com/blog/2016/05/25/mutt/</link>

	<dc:creator>Tyler Cipriani</dc:creator>



	<category>computing</category>

	<category>mutt</category>

	<category>notes</category>


	<pubDate>Wed, 25 May 2016 14:22:03 +0000</pubDate>
	<dcterms:modified>2017-02-14T15:11:05Z</dcterms:modified>


	<description>&lt;section id=&quot;contacts&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Contacts &lt;a href=&quot;https://tylercipriani.com/tags/mutt/#contacts&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Install goobook:&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb1&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb1-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;fu&quot;&gt;sudo&lt;/span&gt; pip2 install -U goobook&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;I ran into some problems in arch, had to upgrade/reinstall a few deps:&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb2&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;kw&quot;&gt;(&lt;/span&gt;ﾉ^ヮ^&lt;span class=&quot;kw&quot;&gt;)&lt;/span&gt;ﾉ&lt;span class=&quot;ex&quot;&gt;*&lt;/span&gt;:・ﾟ✧ sudo pip2 install -U pyasn1&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb2-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;kw&quot;&gt;(&lt;/span&gt;ﾉ^ヮ^&lt;span class=&quot;kw&quot;&gt;)&lt;/span&gt;ﾉ&lt;span class=&quot;ex&quot;&gt;*&lt;/span&gt;:・ﾟ✧ sudo pip2 install -U cryptography&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;goobook then needs to authenticate with gmail:&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb3&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb3-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;goobook&lt;/span&gt; authenticate&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Once you go through the oauth song and dance you should be able to run a &lt;code&gt;query&lt;/code&gt;&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb4&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;kw&quot;&gt;(&lt;/span&gt;ﾉ^ヮ^&lt;span class=&quot;kw&quot;&gt;)&lt;/span&gt;ﾉ&lt;span class=&quot;ex&quot;&gt;*&lt;/span&gt;:・ﾟ✧ goobook query tyler&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-2&quot; title=&quot;2&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb4-3&quot; title=&quot;3&quot;&gt;&lt;span class=&quot;ex&quot;&gt;thcipriani@gmail.com&lt;/span&gt;    Tyler Cipriani  other groups: &lt;span class=&quot;st&quot;&gt;&amp;quot;System Group: Friends&amp;quot;&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;From there, just need to add a bit of magic to the &lt;code&gt;~/.muttrc&lt;/code&gt; file&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb5&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;kw&quot;&gt;set&lt;/span&gt; &lt;span class=&quot;va&quot;&gt;query_command=&lt;/span&gt;&lt;span class=&quot;st&quot;&gt;&amp;quot;goobook query %s&amp;quot;&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-2&quot; title=&quot;2&quot;&gt;&lt;span class=&quot;ex&quot;&gt;macro&lt;/span&gt; index,pager a \&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-3&quot; title=&quot;3&quot;&gt;    &lt;span class=&quot;st&quot;&gt;&amp;quot;&amp;lt;pipe-message&amp;gt;goobook add&amp;lt;return&amp;gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;quot;add sender to google contacts&amp;quot;&lt;/span&gt;&lt;/a&gt;
&lt;a class=&quot;sourceLine&quot; id=&quot;cb5-4&quot; title=&quot;4&quot;&gt;&lt;span class=&quot;bu&quot;&gt;bind&lt;/span&gt; editor &lt;span class=&quot;op&quot;&gt;&amp;lt;&lt;/span&gt;Tab&lt;span class=&quot;op&quot;&gt;&amp;gt;&lt;/span&gt; complete-query&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;viewing-urls&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Viewing URLs &lt;a href=&quot;https://tylercipriani.com/tags/mutt/#viewing-urls&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Install urlview: ncurses program parses urls out of text.&lt;/p&gt;
&lt;p&gt;Create a &lt;code&gt;$HOME/urlview&lt;/code&gt; file:&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb6&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb6-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;COMMAND&lt;/span&gt; xdg-open %s &lt;span class=&quot;kw&quot;&gt;&amp;amp;&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Bind &lt;code&gt;\,u&lt;/code&gt; in the editor:&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb7&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb7-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;macro&lt;/span&gt; pager ,u &lt;span class=&quot;st&quot;&gt;&amp;quot;|urlview&amp;lt;enter&amp;gt;&amp;quot;&lt;/span&gt; &lt;span class=&quot;st&quot;&gt;&amp;quot;call urlview to open links&amp;quot;&lt;/span&gt;&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/section&gt;
&lt;section id=&quot;searching-mail&quot; class=&quot;level2&quot;&gt;
&lt;h2&gt;Searching Mail &lt;a href=&quot;https://tylercipriani.com/tags/mutt/#searching-mail&quot;&gt;¶&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Searching works really well via &lt;code&gt;notmuch&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Afer install, setup via&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb8&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb8-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;notmuch&lt;/span&gt; setup&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;After setup, it&#39;s just a matter of calling&lt;/p&gt;
&lt;div class=&quot;sourceCode&quot; id=&quot;cb9&quot; data-org-language=&quot;sh&quot;&gt;&lt;pre class=&quot;sourceCode bash&quot;&gt;&lt;code class=&quot;sourceCode bash&quot;&gt;&lt;a class=&quot;sourceLine&quot; id=&quot;cb9-1&quot; title=&quot;1&quot;&gt;&lt;span class=&quot;ex&quot;&gt;notmuch&lt;/span&gt; new&lt;/a&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;to index the things&lt;/p&gt;
&lt;/section&gt;
</description>


	<comments>//tylercipriani.com/blog/2016/05/25/mutt/#comments</comments>

</item>

</channel>
</rss>
