[packages/mutt] - fix for imap folders ending with '/'

baggins baggins at pld-linux.org
Sun Mar 15 17:58:00 CET 2015


commit 4572bc7c3b2b0f63d6538bc24face60ae56f3dbf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 15 17:57:31 2015 +0100

    - 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;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mutt.git/commitdiff/dc88d9efd5deab0fd86295678f423a019763285d



More information about the pld-cvs-commit mailing list