To bounce between multiple IMAP accounts with mutt, I created two files to hold the per-account settings and bound a macro key to the index screen that rotates (hence the 'R') between accounts:
forgot to html encode the macros below, so the vim commands were hidden....
folder-hook work.com 'source ~/etc/mutt/work' folder-hook personal.org 'source ~/etc/mutt/personal' set folder=imaps://email@example.com/where ~/etc/mutt/work has at least:
set folder=imaps://firstname.lastname@example.org/ set spoolfile=imaps://email@example.com/ macro index R \ <change-folder>imaps://firstname.lastname@example.org/<enter> \ 'personal imap'and ~/etc/mutt/personal has at least:
set folder=imaps://email@example.com/ set spoolfile=imaps://firstname.lastname@example.org/ macro index R \ <change-folder>imaps://email@example.com/<enter> \ 'work imap'