Andreas Krennmair:
authorak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Tue, 13 Sep 2005 21:42:15 +0000 (21:42 +0000)
committerak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Tue, 13 Sep 2005 21:42:15 +0000 (21:42 +0000)
fixed a small bug where "NBOX" instead of "INBOX" was shown in the sidebar when using IMAP.

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@520 e385b8ad-14ed-0310-8656-cc95a2468c6d

sidebar.c

index a9b0788..57043ba 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -213,12 +213,12 @@ int make_sidebar_entry (char* box, int idx, size_t len)
 #if USE_IMAP
   if (l > 0 && str_ncmp (box, ImapHomeNamespace, l) == 0 && 
       str_len (box) > l)
-    box += l + 1;
+    box += l + 1; /* we're trimming the ImapHomeNamespace, the "+ 1" is for the separator */
   else
 #endif
   if (l_m > 0 && str_ncmp (box, Maildir, l_m) == 0 && 
       str_len (box) > l_m)
-    box += l_m + 1;
+    box += l_m;
   else
     box = basename (box);