Ryan Kavanagh's Blog

From: Ryan Kavanagh rak@debian.org  
To: Blog
Subject: Fixing mutt header cache
Date: 
X-Categories:  planet-ubuntu 

Every now and then I have to kill mutt, which if done at the wrong time, can leave the header cache in an open state. Then attempting to restart mutt will cause it to hang at the "Selecting INBOX" stage. If mutt is compiled with support for the Tokyo Cabinet header cache backend (as it appears to be in Debian), a quick fix for this issue is to repair the header cache database using the Tokyo Cabinet utility tcbmgr from the tokyocabinet-bin package. Simply running tcbmgr optimize -nl ~/.mutt/cache/headers does the trick, and is much nicer of a fix than deleting the header cache.

--
|_)|_/  Ryan Kavanagh		| Debian Developer
| \| \  http://ryanak.ca/	| GPG Key 4A11C97A