]> git.pld-linux.org Git - packages/mutt.git/commitdiff
- fix for imap folders ending with '/'
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 15 Mar 2015 16:57:31 +0000 (17:57 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 15 Mar 2015 16:57:31 +0000 (17:57 +0100)
mutt-sidebar.patch

index 7b93dea4fd2192113117244275b99ce0fe381df3..c80088845e5f2bf27e6a3815da7683ffc7d2f63b 100644 (file)
 +              /* 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;
This page took 0.090712 seconds and 4 git commands to generate.