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" : "LIST");
if (!(idata = imap_conn_find (&(mx.account), 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);
if (isparent)
noselect = 1;
/* prune current folder from output */
- if (isparent || str_ncmp (name, mx.mbox, m_strlen(name)))
+ if (isparent || m_strncmp(name, mx.mbox, m_strlen(name)))
imap_add_folder (idata->delim, name, noselect, noinferiors, state,
isparent);
}
/* 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 (!str_ncmp (mx.mbox, folder, m_strlen(mx.mbox)))
- strfcpy (relpath, folder + m_strlen(mx.mbox), sizeof (relpath));
+ else if (!m_strncmp(mx.mbox, folder, m_strlen(mx.mbox)))
+ 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