Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 2 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://some.imap.host/INBOX

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.