#include <lib-lib/str.h>
#include <lib-lib/ascii.h>
#include <lib-lib/macros.h>
+#include <lib-lib/debug.h>
+
+#include <lib-ui/enter.h>
-#include "lib/debug.h"
#include "mutt.h"
-#include "enter.h"
#include "imap_private.h"
/* -- forward declarations -- */
save_lsub = option (OPTIMAPCHECKSUBSCRIBED);
unset_option (OPTIMAPCHECKSUBSCRIBED);
- strfcpy (list_cmd, option (OPTIMAPLSUB) ? "LSUB" : "LIST",
- sizeof (list_cmd));
+ m_strcpy(list_cmd, sizeof(list_cmd),
+ 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;
}
goto fail;
}
- strfcpy (buf, NONULL (mx.mbox), sizeof (buf));
+ m_strcpy(buf, sizeof(buf), NONULL(mx.mbox));
/* append a delimiter if necessary */
n = m_strlen(buf);
/* render superiors as unix-standard ".." */
if (isparent)
- strfcpy (relpath, "../", sizeof (relpath));
+ m_strcpy(relpath, sizeof(relpath), "../");
/* strip current folder from target, to render a relative path */
else if (!m_strncmp(mx.mbox, folder, m_strlen(mx.mbox)))
- strfcpy (relpath, folder + m_strlen(mx.mbox), sizeof (relpath));
+ m_strcpy(relpath, sizeof(relpath), folder + m_strlen(mx.mbox));
else
- strfcpy (relpath, folder, sizeof (relpath));
+ m_strcpy(relpath, sizeof(relpath), folder);
/* 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
* 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);