Fixing mutt header cache
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.
Comments: To comment on this post, send me an email following the template below. Your email address will not be posted, unless you choose to include it in the link: field. If your web browser is configured to handle mailto: links, click comment to load the template into your mail client.