X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/987fbddea40b1b0c77b6bee8881f4d28a31afa6d..15c23e502a2dcbc20bd179107bb384c99d30dc9d:/debian/patches/mutt-patched/sidebar-dotted diff --git a/debian/patches/mutt-patched/sidebar-dotted b/debian/patches/mutt-patched/sidebar-dotted index 1649f0d..070a0cb 100644 --- a/debian/patches/mutt-patched/sidebar-dotted +++ b/debian/patches/mutt-patched/sidebar-dotted @@ -17,7 +17,7 @@ I hope, it's usefull for someone ;) for (i = 0; i < strlen(tmp->path) - strlen(Maildir); i++) { - if (tmp_folder_name[i] == '/') sidebar_folder_depth++; + if (tmp_folder_name[i] == '/' || tmp_folder_name[i] == '.') sidebar_folder_depth++; - } + } if (sidebar_folder_depth > 0) { - sidebar_folder_name = malloc(strlen(basename(tmp->path)) + sidebar_folder_depth + 1); + if (option(OPTSIDEBARSHORTPATH)) { @@ -25,7 +25,7 @@ I hope, it's usefull for someone ;) + if (tmp_folder_name == NULL) + tmp_folder_name = tmp->path; + else -+ tmp_folder_name++; ++ tmp_folder_name++; + } + else + tmp_folder_name = tmp->path; @@ -62,3 +62,18 @@ I hope, it's usefull for someone ;) OPTSIGDASHES, OPTSIGONTOP, OPTSORTRE, +--- a/debian/extra/samples/sidebar.muttrc ++++ b/debian/extra/samples/sidebar.muttrc +@@ -50,7 +50,11 @@ + # + # sidebar_delim (string) + # Specifies the delimiter between the sidebar and other screens +-# ++# ++# sidebar_shortpath (boolean) ++# When using IMAP, a '.' is often used as a separator. This option ++# allows to shorten the folder name to the part after the last dot. ++# + # color sidebar_new [fg] [bg] + # The foreground (fg) and background (bg) color of folders that contain new + # mail.