]> granicus.if.org Git - neomutt/commitdiff
patch-1.3.8.bj.pretty_mailbox.1
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 31 Aug 2000 15:14:25 +0000 (15:14 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 31 Aug 2000 15:14:25 +0000 (15:14 +0000)
muttlib.c

index 45a1aef60381b80cfca2aa09fc14f76686cf80ba..f072c4d5227534930074d8d384fc4701ff2a666c 100644 (file)
--- 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);
   }