]> granicus.if.org Git - mutt/commitdiff
Use known connection delimiter in imap_expand_path
authorBrendan Cully <brendan@kublai.com>
Sun, 11 Jan 2009 05:44:41 +0000 (21:44 -0800)
committerBrendan Cully <brendan@kublai.com>
Sun, 11 Jan 2009 05:44:41 +0000 (21:44 -0800)
ChangeLog
imap/util.c

index cb8fcd214b87fb1746c3443131983ba85900bbea..d86c9571cb75588397f82103a844af99c82d8f50 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2009-01-10 17:47 -0800  Brendan Cully  <brendan@kublai.com>  (d6ee34f3ccaf)
+2009-01-10 21:43 -0800  Brendan Cully  <brendan@kublai.com>  (aa069968e4d5)
+
+       * imap/util.c: Guard against NULL pointers in imap_mxcmp
+
+       * imap/imap_private.h, imap/util.c: Canonicalize IMAP mailboxes before
+       comparing them.
+
+       * imap/util.c: Fix last commit
 
        * imap/util.c: Prioritize the entered IMAP folder delimiter. First
        priority is the connection delimiter. Second priority is the user's
index 5aff9bdc37d316f45789d489c046fa8af31b1740..62f77a1621d2300f886103d1d5adaa1b3d2d563e 100644 (file)
@@ -54,6 +54,7 @@
 int imap_expand_path (char* path, size_t len)
 {
   IMAP_MBOX mx;
+  IMAP_DATA* idata;
   ciss_url_t url;
   char fixedpath[LONG_STRING];
   int rc;
@@ -61,8 +62,9 @@ int imap_expand_path (char* path, size_t len)
   if (imap_parse_path (path, &mx) < 0)
     return -1;
 
+  idata = imap_conn_find (&mx.account, M_IMAP_CONN_NONEW);
   mutt_account_tourl (&mx.account, &url);
-  imap_fix_path(NULL, mx.mbox, fixedpath, sizeof (fixedpath));
+  imap_fix_path (idata, mx.mbox, fixedpath, sizeof (fixedpath));
   url.path = fixedpath;
 
   rc = url_ciss_tostring (&url, path, len, U_DECODE_PASSWD);