From: Thomas Roessler Date: Thu, 31 Aug 2000 15:14:25 +0000 (+0000) Subject: patch-1.3.8.bj.pretty_mailbox.1 X-Git-Tag: mutt-1-3-9-rel~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=919f46b91326746b9351d85ee172f643500cd9de;p=mutt patch-1.3.8.bj.pretty_mailbox.1 --- diff --git a/muttlib.c b/muttlib.c index 45a1aef6..f072c4d5 100644 --- a/muttlib.c +++ b/muttlib.c @@ -693,14 +693,9 @@ void mutt_pretty_mailbox (char *s) } *q = 0; - if (Maildir && mutt_strncmp (s, Maildir, (len = mutt_strlen (Maildir))) == 0) + if (mutt_strncmp (s, Maildir, (len = mutt_strlen (Maildir))) == 0 && + s[len] == '/') { - /* chop off delimiters after Maildir. '.' is a hack because IMAP can - * use arbitrary delimiters, but we may not have a connection. Could - * call an IMAP delimiter getting function here later, otherwise - * default to this. */ - if (s[len] != '/' && s[len] != '.') - len--; *s++ = '='; memmove (s, s + len, mutt_strlen (s + len) + 1); }