From 4572bc7c3b2b0f63d6538bc24face60ae56f3dbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 15 Mar 2015 17:57:31 +0100 Subject: [PATCH] - fix for imap folders ending with '/' --- mutt-sidebar.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt-sidebar.patch b/mutt-sidebar.patch index 7b93dea..c800888 100644 --- a/mutt-sidebar.patch +++ b/mutt-sidebar.patch @@ -2170,7 +2170,7 @@ + /* calculate depth of current folder and generate its display name with indented spaces */ + int sidebar_folder_depth = 0; + char *sidebar_folder_name; -+ sidebar_folder_name = option(OPTSIDEBARSHORTPATH) ? mutt_basename(tmp->path) : tmp->path + maildir_is_prefix*(strlen(Maildir) + 1); ++ sidebar_folder_name = option(OPTSIDEBARSHORTPATH) ? mutt_basename(tmp->path) : tmp->path + maildir_is_prefix*(strlen(Maildir) + ((Maildir[strlen(Maildir) - 1] == '/' || Maildir[strlen(Maildir) - 1] == '}') ? 0 : 1)); + if ( maildir_is_prefix && option(OPTSIDEBARFOLDERINDENT) ) { + char *tmp_folder_name; + int i; -- 2.43.0