save_lsub = option (OPTIMAPCHECKSUBSCRIBED);
unset_option (OPTIMAPCHECKSUBSCRIBED);
m_strcpy(list_cmd, sizeof(list_cmd),
- option(OPTIMAPLSUB) ? "LSUB" : "LIST");
+ option(OPTIMAPLSUB) ? "LSUB" : "string_list_t");
if (!(idata = imap_conn_find (&(mx.account), 0)))
goto fail;
* namespace is not "", so we have to list it explicitly. We ask the
* server to see if it has descendants. */
debug_print (3, ("adding INBOX\n"));
- if (browse_add_list_result (idata, "LIST \"\" \"INBOX\"", state, 0))
+ if (browse_add_list_result (idata, "string_list_t \"\" \"INBOX\"", state, 0))
goto fail;
}
/* append a delimiter if necessary */
n = m_strlen(buf);
- if (n && (n < sizeof (buf) - 1) && (buf[n - 1] != idata->delim)) {
+ if (n && (n < ssizeof (buf) - 1) && (buf[n - 1] != idata->delim)) {
buf[n++] = idata->delim;
buf[n] = '\0';
}
(state->entry)[state->entrylen].name = m_strdup(tmp);
/* mark desc with delim in browser if it can have subfolders */
- if (!isparent && !noinferiors && m_strlen(relpath) < sizeof (relpath) - 1) {
+ if (!isparent && !noinferiors && m_strlen(relpath) < ssizeof (relpath) - 1) {
relpath[m_strlen(relpath) + 1] = '\0';
relpath[m_strlen(relpath)] = delim;
}
* than invisible namespaces */
if (nsi->delim)
snprintf (buf, sizeof (buf), "%s \"\" \"%s%c%%\"",
- option (OPTIMAPLSUB) ? "LSUB" : "LIST", nsi->prefix,
+ option (OPTIMAPLSUB) ? "LSUB" : "string_list_t", nsi->prefix,
nsi->delim);
else
snprintf (buf, sizeof (buf), "%s \"\" \"%s%%\"",
- option (OPTIMAPLSUB) ? "LSUB" : "LIST", nsi->prefix);
+ option (OPTIMAPLSUB) ? "LSUB" : "string_list_t", nsi->prefix);
imap_cmd_start (idata, buf);