<?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>Renato Carvalho .NET &#187; Mutt</title>
	<atom:link href="http://www.renatocarvalho.net/tag/mutt/feed" rel="self" type="application/rss+xml" />
	<link>http://www.renatocarvalho.net</link>
	<description>E no twitter @rmichnik</description>
	<lastBuildDate>Wed, 21 Jul 2010 00:47:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Sidebar folder list no mutt? Sim senhor!</title>
		<link>http://www.renatocarvalho.net/sidebar-folder-list-no-mutt-sim-senhor.html</link>
		<comments>http://www.renatocarvalho.net/sidebar-folder-list-no-mutt-sim-senhor.html#comments</comments>
		<pubDate>Fri, 14 Sep 2007 17:39:58 +0000</pubDate>
		<dc:creator>Renato Michnik de Carvalho</dc:creator>
				<category><![CDATA[Console]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mutt]]></category>

		<guid isPermaLink="false">http://renato.rootlinux.com.br/sidebar-folder-list-no-mutt-sim-senhor.html</guid>
		<description><![CDATA[Para quem não conhece, o mutt é um cliente de email que roda em console, muito bom, flexível, configurável, usável, otimizável e *ável. Navegando na net procurando por novidades sobre o mutt, me deparei com o site do Lunar-Linux em que um maluco criou um path para que seja exibido do lado esquerdo do mutt [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://renato.rootlinux.com.br/uploads/mutt-icon2.png" alt="mutt-icon2.png" align="left" />Para quem não conhece, o mutt é um cliente de email que roda em console, muito bom, flexível, configurável, usável, otimizável e *ável.</p>
<p>Navegando na net procurando por novidades sobre o mutt, me deparei com o site do <a href="http://www.lunar-linux.org">Lunar-Linux</a> em que um maluco criou um path para que seja exibido do lado esquerdo do mutt um sidebar com a lista das suas &#8220;pastas&#8221; de email que você pode conferir na imagem abaixo.</p>
<p style="text-align: center"><a title="mutt-sidebar2.jpg" rel="lightbox" href="http://renato.rootlinux.com.br/uploads/mutt-sidebar2.jpg"><img src="http://renato.rootlinux.com.br/uploads/mutt-sidebar2.thumbnail.jpg" alt="mutt-sidebar2.jpg" /></a></p>
<p>Notem que além dele listar as &#8220;pastas&#8221; em sua esquerda ele conta quantas mensagens antigas e quantas novas há armazenadas, lembrando que eu utilizo o formato maildir de arquivamento das minhas mensagens ao invés do formato mbox.</p>
<p>A instala<span class="centro_resposta">ção ocorreu sem nenhum problema, segui exatamente o que o autor diz no site:</span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-O</span> - <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.mutt.org<span style="color: #000000; font-weight: bold;">/</span>mutt<span style="color: #000000; font-weight: bold;">/</span>devel<span style="color: #000000; font-weight: bold;">/</span>mutt-1.5.16.tar.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz - $ <span style="color: #7a0874; font-weight: bold;">cd</span> .<span style="color: #000000; font-weight: bold;">/</span>mutt-1.5.16
$ <span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-O</span> - http:<span style="color: #000000; font-weight: bold;">//</span>lunar-linux.org<span style="color: #000000; font-weight: bold;">/</span>~tchan<span style="color: #000000; font-weight: bold;">/</span>mutt<span style="color: #000000; font-weight: bold;">/</span>patch-1.5.16.sidebar.20070704.txt <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">patch</span> <span style="color: #660033;">-p1</span>
$ .<span style="color: #000000; font-weight: bold;">/</span>configure
$ <span style="color: #c20cb9; font-weight: bold;">make</span>
$ .<span style="color: #000000; font-weight: bold;">/</span>mutt
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>optional, <span style="color: #000000; font-weight: bold;">&lt;</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span>you need to be root <span style="color: #000000; font-weight: bold;">for</span> this<span style="color: #000000; font-weight: bold;">&lt;/</span>strong<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></td></tr></table></div>

<p>Após a instalação  do mutt devidamente patcheado, vamos editar o seu ~/.muttrc ou ~/.mutt/muttrc, depende de como ta sua configuração, e adicionar as seguintes linhas:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># set up the sidebar, default not visible</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">sidebar_width</span>=<span style="color: #000000;">30</span>
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">sidebar_visible</span>=no
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #007800;">sidebar_delim</span>=<span style="color: #ff0000;">'|'</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># which mailboxes to list in the sidebar</span>
mailboxes =inbox =ml
&nbsp;
<span style="color: #666666; font-style: italic;"># color of folders with new mail</span>
color sidebar_new yellow default
&nbsp;
<span style="color: #666666; font-style: italic;"># ctrl-n, ctrl-p to select next, prev folder</span>
<span style="color: #666666; font-style: italic;"># ctrl-o to open selected folder</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> index \CP sidebar-prev
<span style="color: #7a0874; font-weight: bold;">bind</span> index \CN sidebar-next
<span style="color: #7a0874; font-weight: bold;">bind</span> index \CO sidebar-open
<span style="color: #7a0874; font-weight: bold;">bind</span> pager \CP sidebar-prev
<span style="color: #7a0874; font-weight: bold;">bind</span> pager \CN sidebar-next
<span style="color: #7a0874; font-weight: bold;">bind</span> pager \CO sidebar-open
&nbsp;
<span style="color: #666666; font-style: italic;"># I don't need these.  just for documentation purposes.  See below.</span>
<span style="color: #666666; font-style: italic;"># sidebar-scroll-up</span>
<span style="color: #666666; font-style: italic;"># sidebar-scroll-down</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># b toggles sidebar visibility</span>
macro index b <span style="color: #ff0000;">'toggle sidebar_visible'</span>
macro pager b <span style="color: #ff0000;">'toggle sidebar_visible'</span>
<span style="color: #666666; font-style: italic;"># Remap bounce-message function to &quot;B&quot;</span>
<span style="color: #7a0874; font-weight: bold;">bind</span> index B bounce-message
&nbsp;
<span style="color: #666666; font-style: italic;"># Mario Holbe suggests:</span>
<span style="color: #666666; font-style: italic;"># macro index b 'toggle sidebar_visible'</span>
<span style="color: #666666; font-style: italic;"># macro pager b 'toggle sidebar_visible'</span>
<span style="color: #666666; font-style: italic;">#</span></pre></td></tr></table></div>

<p>Modifique o que achar necessário,  agora reinicie o mutt e aperte a tecla &#8220;b&#8221; e&#8230; voilà! O mutt agora possui a lista dos diretórios como mostrado na imagem acima :-)</p>
<ul class="related_post"><li><a href="http://www.renatocarvalho.net/utilizando-folding-no-vim.html" title="Utilizando folding no vim">Utilizando folding no vim</a></li><li><a href="http://www.renatocarvalho.net/integrando-o-manual-do-php-ao-vim-offline.html" title="Integrando o manual do php ao VIM">Integrando o manual do php ao VIM</a></li><li><a href="http://www.renatocarvalho.net/autocompletando-no-vim-dicionario-php.html" title="Autocompletando no vim + dicionário PHP">Autocompletando no vim + dicionário PHP</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.renatocarvalho.net/sidebar-folder-list-no-mutt-sim-senhor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
