<?xml version="1.0" encoding="utf-8"?>

<feed xmlns="http://www.w3.org/2005/Atom">
<title>Tyler Cipriani: pages tagged mutt</title>
<link href="https://tylercipriani.com/tags/mutt/"/>
<link href="https://tylercipriani.com/tags/mutt/index.atom" rel="self" type="application/atom+xml"/>
<author>

<name>Tyler Cipriani</name>

</author>




<id>https://tylercipriani.com/tags/mutt/</id>

<subtitle type="html">Tyler Cipriani</subtitle>
<generator uri="http://ikiwiki.info/">ikiwiki</generator>
<updated>2017-02-14T15:11:05Z</updated>
<entry>
	<title>Mutt</title>

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

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

	<author><name>Tyler Cipriani</name></author>


	<rights type="html" xml:lang="en">

		Creative Commons Attribution-ShareAlike License
		Copyright © 2017 Tyler Cipriani

	</rights>



	<category term="computing" />

	<category term="mutt" />

	<category term="notes" />


	<updated>2017-02-14T15:11:05Z</updated>
	<published>2016-05-25T14:22:03Z</published>


	<content type="html" xml:lang="en">
	&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;

	</content>


	<link rel="comments" href="//tylercipriani.com/blog/2016/05/25/mutt/#comments" type="text/html" />


	<link rel="comments" href="//tylercipriani.com/blog/2016/05/25/mutt/comments.atom" type="application/atom+xml" />

</entry>

</feed>
