From 3c3f3c35b70bbdd89a5be591bc37bde680680c71 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 4 Sep 2001 09:30:04 +0000 Subject: patch-bac.canonifypath-4. The attached patch reverts the IMAP canonification patch I reverted a version ago (sorry for being so wishy-washy). This time I put in some code to preserve IMAP URL passwords in the initial pass, so people who like to use those sorts of URLs still can. That was the only reason I had reverted the patch before. (From Brendan Cully.) --- imap/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'imap') diff --git a/imap/util.c b/imap/util.c index 64d9dfe3..7f88dbac 100644 --- a/imap/util.c +++ b/imap/util.c @@ -58,7 +58,7 @@ int imap_expand_path (char* path, size_t len) mutt_account_tourl (&mx.account, &url); url.path = mx.mbox; - rc = url_ciss_tostring (&url, path, len); + rc = url_ciss_tostring (&url, path, len, U_DECODE_PASSWD); FREE (&mx.mbox); return rc; @@ -223,7 +223,7 @@ void imap_pretty_mailbox (char* path) /* FIXME: That hard-coded constant is bogus. But we need the actual * size of the buffer from mutt_pretty_mailbox. And these pretty * operations usually shrink the result. Still... */ - url_ciss_tostring (&url, path, 1024); + url_ciss_tostring (&url, path, 1024, 0); } FREE (&target.mbox); @@ -426,7 +426,7 @@ void imap_qualify_path (char *dest, size_t len, IMAP_MBOX *mx, char* path) mutt_account_tourl (&mx->account, &url); url.path = path; - url_ciss_tostring (&url, dest, len); + url_ciss_tostring (&url, dest, len, 0); } -- cgit v1.2.3