-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
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;
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);