<?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>Hyperextended Metaphor &#187; mutt</title>
	<atom:link href="http://innocuous.org/articles/tag/mutt/feed/" rel="self" type="application/rss+xml" />
	<link>http://innocuous.org</link>
	<description>Richard Tibbetts on Various Topics</description>
	<lastBuildDate>Sat, 12 Feb 2011 14:19:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making offlineimap not die</title>
		<link>http://innocuous.org/articles/2006/01/20/making-offlineimap-not-die/</link>
		<comments>http://innocuous.org/articles/2006/01/20/making-offlineimap-not-die/#comments</comments>
		<pubDate>Fri, 20 Jan 2006 16:29:48 +0000</pubDate>
		<dc:creator>tibbetts</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://new.innocuous.org/articles/2006/01/20/making-offlineimap-not-die/</guid>
		<description><![CDATA[I love offlineimap. I even love the quirky way it is hosted on a gopher site. The functionality is awesome. For those of you who don&#8217;t know, offlineimap syncronizes a remote IMAP mailbox heirarchy with a local Maildir folder heirarchy. This means you get disconnected IMAP operation with all your favorite Maildir clients (like mutt), [...]]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://gopher.quux.org:70/devel/offlineimap/" onclick="javascript:pageTracker._trackPageview('/outbound/article/gopher.quux.org:70');">offlineimap</a>. I even love the quirky way it is hosted on a gopher site. The functionality is awesome. For those of you who don&#8217;t know, offlineimap syncronizes a remote IMAP mailbox heirarchy with a local Maildir folder heirarchy. This means you get disconnected IMAP operation with all your favorite Maildir clients (like <a href="http://mutt.org" onclick="javascript:pageTracker._trackPageview('/outbound/article/mutt.org');">mutt</a>), while still retaining the ability to access your mail using other IMAP clients.</p>
<p>However, offlineimap crashes too often. Every couple of days I will fail to get any new mail for an hour or two, and realize that offlineimap has crashed. And due to Murphy&#8217;s law this generally correlates with a time when I was recieving some important mail.</p>
<p>The solution is very simple. I am using <a href="http://directory.fsf.org/zenity.html" onclick="javascript:pageTracker._trackPageview('/outbound/article/directory.fsf.org');">zenity</a>, a command line tool for displaying dialog boxes, and running offline imap in a loop. Every time it dies, I get a pop-up dialog, and can say OK to restart it, or Cancel to end the loop. The little shell script to do this is as follows:</p>
<p>#!/bin/sh</p>
<p>/usr/bin/offlineimap -u TTY.TTYUI;</p>
<p>while zenity &#8211;question &#8211;text &#8220;Offlineimap died. Restart?&#8221;; do</p>
<p>/usr/bin/offlineimap -u TTY.TTYUI;</p>
<p>done</p>
]]></content:encoded>
			<wfw:commentRss>http://innocuous.org/articles/2006/01/20/making-offlineimap-not-die/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

