Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I'm using mutt with mutt-patched to manage 5 different Gmail accounts. For each of this accounts, I have INBOX as a mailbox with the mailboxes +INBOX configuration statement for each one. Then, I have 5 different uglies INBOX options to choose in my left column.

Is there a way to rename that mailboxes screen names to get visually information about, for example, wich account belongs each one?

share|improve this question

I've been some researching, with some help from a friend, and that's what we have found out.

It's possible to change the list of mailboxes (pressing "c" plus "?", for instance), but I think at the moment there is no easy way (but maybe there is a not-so-easy way) to change the names in the folder browser (I suppose that would change mutt-patched tree). From the mutt wiki FAQ about display:

How do I change the format/ display of the list of mailboxes/ folders (or any menu)? The default display of mailbox folders includes a lot more information than sometimes needed. It is "N permissions owner group size date name" but you might prefer something shorter like "N size date name". You need to adjust the $folder_format variable to configure the look of the display of available inboxes (browser), look it up in the manual.txt. In general, you customize views with the *_format set of variables, there are some of them.

set folder_format="%2C %t %N %8s %d %f"  # what I settled on

Here you can find the variables you can use to format it.

Can I personalize/ shortcut the display of or label the folder names in the folder browser? No. :-)

Either try your luck with /RemoteFolder hints for shortening pathnames via $folder, or name the folders as needed (for sorting or saving typing).

And in the mutt wiki FAQ about RemoteFolder says:

How can I save typing long IMAP-pathnames? If you have just 1 IMAP account and/or don't need the $folder variable to access local folders or use "~" to do so, then you can store the common path of a single IMAP-server in $folder and use "+" or "=" as a shortcut (see MuttGuide/Folders).

You can specify mailboxes to have more than 1 listed in the mailbox folder-browse mode (change folder, hit '?' twice to find the key to toggle "mailboxes view"). You can use $folder to save typing when specifying them (note to reset it at the end to a sane local value):

set folder=imap://AAA.tld
mailboxes +folder1 +folder2 ...
set folder=imap://BBB.tld
mailboxes +folder1 +folder2 ...
set folder=~/Mail

Or use macros in the different menus and contexts (changing or saving folders), especially if you have more than 1.

With hooks you can change $folder dynamically, get creative.

But I haven't had success, maybe somebody...

Another possibility, maybe would be with the @alias shortcut.

And, what seems to me to be the most definitive answer, there is a new enhancement ticket asking for, exactly, aliases for mailboxes. This ticket, even has an attachment that seems to fix the problem, but I haven't tested it (maybe I'll, but at the moment I haven't the time).

share|improve this answer

Your Answer


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.