]> git.pld-linux.org Git - packages/mutt.git/blobdiff - mutt-sidebar.patch
- fix for imap folders ending with '/'
[packages/mutt.git] / 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.034959 seconds and 4 git commands to generate.