X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/0ca86972afbf27082baed26631273e0fc78e8c6b..40dcc70d7c9189c0a005a79b9d5c0af31debd3a5:/debian/patches/upstream/530887-dovecot-imap.patch?ds=inline diff --git a/debian/patches/upstream/530887-dovecot-imap.patch b/debian/patches/upstream/530887-dovecot-imap.patch index 3b67a18..793f049 100644 --- a/debian/patches/upstream/530887-dovecot-imap.patch +++ b/debian/patches/upstream/530887-dovecot-imap.patch @@ -1,3 +1,14 @@ +This patch fixes the following two bugs: +*) http://bugs.debian.org/530887 + mutt: fails to move read messages even with move=yes + +*) http://bugs.debian.org/530671 + mutt: does not want to open dot subdirs via imap anymore + +the second one happens with dovecot which uses / as a delimeter for mailbox, +so without this patch is not possible to access subdirs on imap accounts +hosted on dovecot + --- a/imap/util.c +++ b/imap/util.c @@ -393,19 +393,19 @@ @@ -17,12 +28,12 @@ while (mailbox && *mailbox && i < plen - 1) { - if (strchr(ImapDelimChars, *mailbox) || *mailbox == delim) -+ if ((ImapDelimChars && strchr(ImapDelimChars, *mailbox)) ++ if ((ImapDelimChars && strchr(ImapDelimChars, *mailbox)) + || *mailbox == delim) { + /* use connection delimiter if known. Otherwise use user delimiter */ + if (!idata) -+ delim = *mailbox; ++ delim = *mailbox; while (*mailbox && (strchr(ImapDelimChars, *mailbox) || *mailbox == delim)) mailbox++;