X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..de7c727b1b27163bf1b8c1f97a481ea077a2cfe9:/imap/browse.c diff --git a/imap/browse.c b/imap/browse.c index 0262e2f..8b60bc7 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -72,11 +72,13 @@ int imap_browse (char* path, struct browser_state* state) if (mx.mbox && mx.mbox[0] != '\0') { int rc; + char *ptr; imap_fix_path (idata, mx.mbox, mbox, sizeof (mbox)); - imap_munge_mbox_name (buf, sizeof (buf), mbox); - imap_unquote_string(buf); /* As kludgy as it gets */ + ptr = safe_strdup (mbox); + imap_utf7_encode (&ptr); mbox[sizeof (mbox) - 1] = '\0'; - strncpy (mbox, buf, sizeof (mbox) - 1); + strncpy (mbox, ptr, sizeof (mbox) - 1); + FREE (&ptr); n = mutt_strlen (mbox); dprint (3, (debugfile, "imap_browse: mbox: %s\n", mbox));