From: Brendan Cully Date: Sun, 11 Jan 2009 02:19:56 +0000 (-0800) Subject: Fix last commit X-Git-Tag: neomutt-20160307~789 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a808d90a6a8092e7b6d1e58f6734c7ee58d636c9;p=neomutt Fix last commit --- diff --git a/ChangeLog b/ChangeLog index 5875da1e3..cb8fcd214 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2009-01-10 17:47 -0800 Brendan Cully (d6ee34f3ccaf) + + * imap/util.c: Prioritize the entered IMAP folder delimiter. First + priority is the connection delimiter. Second priority is the user's + delimiter if it is in imap_delim_chars. We no longer use the first + character in imap_delim_chars. + +2009-01-06 18:34 -0800 Vsevolod Volkov (4032dfd52118) + + * po/ru.po: Updated Russian translation + 2009-01-05 16:43 -0800 Brendan Cully (0d81ef9d40fd) * build-release: Sign tagged revision, not the one after diff --git a/imap/util.c b/imap/util.c index 2a5899856..db9e3a762 100644 --- a/imap/util.c +++ b/imap/util.c @@ -400,10 +400,11 @@ char *imap_fix_path (IMAP_DATA *idata, char *mailbox, char *path, while (mailbox && *mailbox && i < plen - 1) { - if (ImapDelimChars && strchr(ImapDelimChars, *mailbox) || *mailbox == delim) + if ((ImapDelimChars && strchr(ImapDelimChars, *mailbox)) + || *mailbox == delim) { /* use connection delimiter if known. Otherwise use user delimiter */ - if (!delim) + if (!idata) delim = *mailbox; while (*mailbox &&