X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fbrowse.c;h=4ce8f30fea97ba1441b6871938473a45c8720395;hp=4f4bee08bb145a003b8958da4c941744acad91f4;hb=ddc565e15e8d7e2eaeea568dd6602dc0347474c5;hpb=688ac22f746f785c27ac99ac86aa85a3035a3638 diff --git a/imap/browse.c b/imap/browse.c index 4f4bee0..4ce8f30 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -63,7 +63,7 @@ int imap_browse (char *path, struct browser_state *state) save_lsub = option (OPTIMAPCHECKSUBSCRIBED); unset_option (OPTIMAPCHECKSUBSCRIBED); m_strcpy(list_cmd, sizeof(list_cmd), - option(OPTIMAPLSUB) ? "LSUB" : "string_list_t"); + option(OPTIMAPLSUB) ? "LSUB" : "LIST"); if (!(idata = imap_conn_find (&(mx.account), 0))) goto fail; @@ -178,7 +178,7 @@ int imap_browse (char *path, struct browser_state *state) /* Listing the home namespace, so INBOX should be included. Home * namespace is not "", so we have to list it explicitly. We ask the * server to see if it has descendants. */ - if (browse_add_list_result (idata, "string_list_t \"\" \"INBOX\"", state, 0)) + if (browse_add_list_result (idata, "LIST \"\" \"INBOX\"", state, 0)) goto fail; } @@ -384,7 +384,7 @@ static void imap_add_folder (char delim, char *folder, int noselect, /* apply filemask filter. This should really be done at menu setup rather * than at scan, since it's so expensive to scan. But that's big changes * to browser.c */ - if (!((regexec (Mask.rx, relpath, 0, NULL, 0) == 0) ^ Mask.not)) { + if (!((regexec (Mask.rx, relpath, 0, NULL, 0) == 0) ^ Mask.neg)) { p_delete(&mx.mbox); return; } @@ -526,11 +526,11 @@ static int browse_verify_namespace (IMAP_DATA * idata, * than invisible namespaces */ if (nsi->delim) snprintf (buf, sizeof (buf), "%s \"\" \"%s%c%%\"", - option (OPTIMAPLSUB) ? "LSUB" : "string_list_t", nsi->prefix, + option (OPTIMAPLSUB) ? "LSUB" : "LIST", nsi->prefix, nsi->delim); else snprintf (buf, sizeof (buf), "%s \"\" \"%s%%\"", - option (OPTIMAPLSUB) ? "LSUB" : "string_list_t", nsi->prefix); + option (OPTIMAPLSUB) ? "LSUB" : "LIST", nsi->prefix); imap_cmd_start (idata, buf);