The Mutt E-Mail Client : Advanced Usage : Managing multiple IMAP/POP accounts (OPTIONAL)
Previous: Authentication
Next: Start a WWW Browser on URLs (EXTERNAL)

## 4.12. Managing multiple IMAP/POP accounts (OPTIONAL)

If you happen to have accounts on multiple IMAP and/or POP servers, you may find managing all the authentication settings inconvenient and error-prone. The account-hook command may help. This hook works like folder-hook but is invoked whenever you access a remote mailbox (including inside the folder browser), not just when you open the mailbox.

Some examples:

> `

>     account-hook . 'unset imap_user; unset imap_pass; unset tunnel'
>     account-hook imap://host1/ 'set imap_user=me1 imap_pass=foo'
>     account-hook imap://host2/ 'set tunnel="ssh host2 /usr/libexec/imapd"'

> `

The Mutt E-Mail Client : Advanced Usage : Managing multiple IMAP/POP accounts (OPTIONAL)
Previous: Authentication
Next: Start a WWW Browser on URLs (EXTERNAL)