LINUX.ORG.RU

История изменений

Исправление disarmer, (текущая версия) :

У меня так, переключение работает:

# Folder hooks
folder-hook 'account.com.gmail.mk1' 'source ~/.config/mutt/mk1'
folder-hook 'account.com.gmail.mk2' 'source ~/.config/mutt/mk2'

# Default account
source ~/.config/mutt/mk1

# Macros for switching accounts
macro index <f1> '<sync-mailbox><enter-command>source ~/.config/mutt/mk1<enter><change-folder>!<enter>'
macro index <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/mk2<enter><change-folder>!<enter>'
Насколько я помню важен именно такой формат в folder-hook

Исходная версия disarmer, :

У меня так, переключение работает:

# Folder hooks
folder-hook 'account.com.gmail.mk1' 'source ~/.config/mutt/mk1'
folder-hook 'account.com.gmail.mk2' 'source ~/.config/mutt/mk2'

# Default account
source ~/.config/mutt/mk1

# Macros for switching accounts
macro index <f1> '<sync-mailbox><enter-command>source ~/.config/mutt/mk1<enter><change-folder>!<enter>'
macro index <f2> '<sync-mailbox><enter-command>source ~/.config/mutt/mk2<enter><change-folder>!<enter>'