summaryrefslogtreecommitdiffstats
path: root/imap
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2001-09-04 09:30:04 +0000
committerThomas Roessler <roessler@does-not-exist.org>2001-09-04 09:30:04 +0000
commit3c3f3c35b70bbdd89a5be591bc37bde680680c71 (patch)
tree777d885bf1dc969cf10f5d5aee127fb1181a411f /imap
parenta2c83b0080deb70cbcf44c048cf4c3248df8c451 (diff)
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.)
Diffstat (limited to 'imap')
-rw-r--r--imap/util.c6
1 files changed, 3 insertions, 3 deletions
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);
}