summaryrefslogtreecommitdiffstats
path: root/browser.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-04-19 13:51:07 -0700
committerKevin McCarthy <kevin@8t8.us>2018-04-19 13:51:07 -0700
commit6995982075974880a6f7be81b916302c8894dd91 (patch)
tree0682640f127ab2d1e235375c179f27b7fbe6afe8 /browser.c
parent4e4574c413ce7eac8cc665383fecbe8c57f89ccf (diff)
Add $browser_abbreviate_mailboxes.
This allows '=' and '~' mailboxes shortcuts to be turned off in the browser mailbox list. The default $sort_browser value of "alpha" uses strcoll(3), which ignores some punctuation. When using multiple accounts with dynamically changing values of $folder, this can lead to an unintuitive sorting order. (See issue #22 for an example.) This problem came about because of commit 8328ce68, which enabled mutt_pretty_mailbox() calls for IMAP and POP mailboxes too. The commit had a valid point about consistency and too-wide mailbox listings, so I don't really want to revert it. This option provides an alternative to completely enable/disable the shortcuts for those who run into an issue.
Diffstat (limited to 'browser.c')
-rw-r--r--browser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/browser.c b/browser.c
index 5d4d256e..cb28a3a3 100644
--- a/browser.c
+++ b/browser.c
@@ -495,7 +495,8 @@ static int examine_mailboxes (MUTTMENU *menu, struct browser_state *state)
}
strfcpy (buffer, NONULL (tmp->path), sizeof (buffer));
- mutt_pretty_mailbox (buffer, sizeof (buffer));
+ if (option (OPTBROWSERABBRMAILBOXES))
+ mutt_pretty_mailbox (buffer, sizeof (buffer));
#ifdef USE_IMAP
if (mx_is_imap (tmp->path))