Mutt: automatically fetch remote IMAP folder list

imapmutt

I know that I can explicitly set a remote IMAP folder in .muttrc

mailboxes imaps://$my_server/INBOX.myfolder

I have some 30 folders in my account: is it possible to have mutt to automatically fetch the IMAP remote folders list so that I can navigate them?

Best Answer

There is an option for your config file:

imap_check_subscribed
       Type: boolean
       Default: no

       When set, mutt will fetch the set of subscribed folders from
       your server on connection, and add them to the set of mailboxes
       it polls for new mail just as if you had issued individual
       “mailboxes” commands.

Of course this only works for subscribed folders and only after your first connection to the server.

Related Question