Mutt: fixed change-folder issue with multiple accounts.

Mutt: moved hcache to ~/.cache/mutt
master
Pierre Neidhardt 2013-03-02 16:24:29 +01:00
parent ed888f68a3
commit 405cfac28d
1 changed files with 7 additions and 3 deletions

10
.muttrc
View File

@ -8,7 +8,6 @@
## These folders are assumed to exist: ## These folders are assumed to exist:
## ~/.mutt: personal stuff (contacts, account information) ## ~/.mutt: personal stuff (contacts, account information)
## ~/.mutt.d: public stuff (theme, mailcap) ## ~/.mutt.d: public stuff (theme, mailcap)
## ~/.mutt.d/hcache: see header_cache below.
##------------------------------------------------------------------------------ ##------------------------------------------------------------------------------
## General options ## General options
@ -28,7 +27,7 @@ alternative_order text/plain text/html
## Store message headers locally to speed things up. ## Store message headers locally to speed things up.
## Gentoo wiki says that if a folder is specified, it is even faster. ## Gentoo wiki says that if a folder is specified, it is even faster.
## If no folder exists, the cache will be a single file. ## 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. ## Allow mutt to open new imap connection automatically.
unset imap_passive unset imap_passive
@ -131,9 +130,14 @@ source $alias_file
## Keys ## Keys
##------------------------------------------------------------------------------ ##------------------------------------------------------------------------------
# Remap bounce-message function to "B" ## Remap bounce-message function to "B"
bind index B bounce-message 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' '<change-folder>?<change-dir><home>^K=<enter>'
## Manual fetch. ## Manual fetch.
bind index "^" imap-fetch-mail bind index "^" imap-fetch-mail