#include <stdlib.h>
#include <ctype.h>
+#include "lib/mem.h"
+#include "lib/str.h"
+#include "lib/intl.h"
+
#include "mutt.h"
#include "imap_private.h"
imap_unmunge_mbox_name (cur_folder);
if (!noinferiors && cur_folder[0] &&
- (n = strlen (mbox)) < LONG_STRING - 1) {
+ (n = mutt_strlen (mbox)) < LONG_STRING - 1) {
mbox[n++] = idata->delim;
mbox[n] = '\0';
}
if (isparent)
noselect = 1;
/* prune current folder from output */
- if (isparent || mutt_strncmp (name, mx.mbox, strlen (name)))
+ if (isparent || mutt_strncmp (name, mx.mbox, mutt_strlen (name)))
imap_add_folder (idata->delim, name, noselect, noinferiors, state,
isparent);
}
(state->entry)[state->entrylen].name = safe_strdup (tmp);
/* mark desc with delim in browser if it can have subfolders */
- if (!isparent && !noinferiors && strlen (relpath) < sizeof (relpath) - 1) {
- relpath[strlen (relpath) + 1] = '\0';
- relpath[strlen (relpath)] = delim;
+ if (!isparent && !noinferiors && mutt_strlen (relpath) < sizeof (relpath) - 1) {
+ relpath[mutt_strlen (relpath) + 1] = '\0';
+ relpath[mutt_strlen (relpath)] = delim;
}
(state->entry)[state->entrylen].desc = safe_strdup (relpath);