The reporter had a $spoolfile of ~/Mailbox and a $folder of ~/Mail.
The sidebar was truncating the spoolfile to "ox" because it only
looked at a substring prefix match.
/* check whether Maildir is a prefix of the current folder's path */
short maildir_is_prefix = 0;
- if ((mutt_strlen (b->path) > maildirlen) && (mutt_strncmp (Maildir, b->path, maildirlen) == 0))
+ if ((mutt_strlen (b->path) > maildirlen) &&
+ (mutt_strncmp (Maildir, b->path, maildirlen) == 0) &&
+ SidebarDelimChars &&
+ strchr (SidebarDelimChars, b->path[maildirlen]))
maildir_is_prefix = 1;
/* calculate depth of current folder and generate its display name with indented spaces */