Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I type c in mutt I get all my folders displayed and this is quite long.

I would like to configure it to show only those folders that I deem to be interesting. Would be happy to configure it by adding a list in my .muttrc

share|improve this question
up vote 3 down vote accepted

Pressing TAB after c will switch from the folder to the mailbox list view. Pressing it again takes you back.

You can add new mailboxes with something like

mailboxes /some/local/path
mailboxes imaps://

For imap (after login) this will add all top-folders to the mailbox list though.

share|improve this answer
In my normal muttrc, there is a mailboxes command that adds all the foldes in ~/Maildir/. If I have run that, how do I empty the list of mailboxes. – justintime Mar 27 '10 at 15:05
Also thanks for the very quick reply ... – justintime Mar 27 '10 at 15:06
As I understand it, there is no way to "narrow down" the list of folders further (apart from what is already registered as mailbox). Maybe there is some "bookmark" patch available somewhere, but I couldn't find it. – Benjamin Bannier Mar 28 '10 at 17:47

There's a mutt sidebar patch (available on Debian, Ubuntu and probably others as mutt-patched ).

With it, you set up your mailboxes as a list of folders you're interested in; they'll appear on the left of the screen. You can then use commands like sidebar-next to navigate. I use this setup:

bind index \CN sidebar-next
bind index \CP sidebar-prev
bind index \CO sidebar-open
share|improve this answer
Thanks - sounds interesting – justintime Mar 28 '10 at 10:05
Thanks for mentioning mudd-patched. Do you have any other suggested keybindings for sidebar navigation (e.g., page-up, page-down)? How about searching for a folder and having that folder highlighted in the sidebar)? Or changing whether folders that contain subfolders are expanded/collapsed in the sidebar view? Cheers. – user001 Jul 30 '12 at 10:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .