From 405cfac28dba793f3869b8e9e270dfb0ab4c496d Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sat, 2 Mar 2013 16:24:29 +0100 Subject: [PATCH] Mutt: fixed change-folder issue with multiple accounts. Mutt: moved hcache to ~/.cache/mutt --- .muttrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.muttrc b/.muttrc index e13bf119..43038b6f 100644 --- a/.muttrc +++ b/.muttrc @@ -8,7 +8,6 @@ ## These folders are assumed to exist: ## ~/.mutt: personal stuff (contacts, account information) ## ~/.mutt.d: public stuff (theme, mailcap) -## ~/.mutt.d/hcache: see header_cache below. ##------------------------------------------------------------------------------ ## General options @@ -28,7 +27,7 @@ alternative_order text/plain text/html ## Store message headers locally to speed things up. ## Gentoo wiki says that if a folder is specified, it is even faster. ## If no folder exists, the cache will be a single file. -set header_cache = "~/.mutt.d/hcache" +set header_cache = "~/.cache/mutt" ## Allow mutt to open new imap connection automatically. unset imap_passive @@ -131,9 +130,14 @@ source $alias_file ## Keys ##------------------------------------------------------------------------------ -# Remap bounce-message function to "B" +## Remap bounce-message function to "B" bind index B bounce-message +## Fix the 'change-dir' issue with multiple accounts. When change-dir was called +## with account A, then use switched to account B, change-dir will still point +## to account A by default. +macro index 'c' '?^K=' + ## Manual fetch. bind index "^" imap-fetch-mail