/* try to use server-side copy first */
i = 1;
- if (ctx->magic == M_IMAP && imap_is_magic (mbox, NULL) == M_IMAP) {
+ if (ctx->magic == M_IMAP && imap_mx.mx_is_magic (mbox, NULL) == M_IMAP) {
/* tag messages for moving, and clear old tags, if any */
for (i = 0; i < ctx->msgcount; i++)
if (ctx->hdrs[i]->read && !ctx->hdrs[i]->deleted
break;
case 'N':
- if (imap_is_magic (folder->ff->desc, NULL) == M_IMAP) {
+ if (imap_mx.mx_is_magic (folder->ff->desc, NULL) == M_IMAP) {
if (!optional) {
snprintf (tmp, sizeof (tmp), "%%%sd", fmt);
snprintf (dest, destlen, tmp, folder->ff->new);
if (*f) {
mutt_expand_path (f, flen);
- if (imap_is_magic (f, NULL) == M_IMAP) {
+ if (imap_mx.mx_is_magic (f, NULL) == M_IMAP) {
init_state (&state, NULL);
state.imap_browse = 1;
if (!imap_browse (f, &state))
else if (!LastDir[0])
m_strcpy(LastDir, sizeof(LastDir), NONULL(Maildir));
- if (!buffy && imap_is_magic (LastDir, NULL) == M_IMAP) {
+ if (!buffy && imap_mx.mx_is_magic (LastDir, NULL) == M_IMAP) {
init_state (&state, NULL);
state.imap_browse = 1;
imap_browse (LastDir, &state);
buf[0]) {
buffy = 0;
mutt_expand_path (buf, sizeof (buf));
- if (imap_is_magic (buf, NULL) == M_IMAP) {
+ if (imap_mx.mx_is_magic (buf, NULL) == M_IMAP) {
m_strcpy(LastDir, sizeof(LastDir), buf);
destroy_state (&state);
init_state (&state, NULL);
if (examine_mailboxes (menu, &state) == -1)
goto bail;
}
- else if (imap_is_magic (LastDir, NULL) == M_IMAP) {
+ else if (imap_mx.mx_is_magic (LastDir, NULL) == M_IMAP) {
init_state (&state, NULL);
state.imap_browse = 1;
imap_browse (LastDir, &state);
case '=':
case '+':
/* if folder = imap[s]://host/: don't append slash */
- if (imap_is_magic(NONULL(Maildir), NULL) == M_IMAP
+ if (imap_mx.mx_is_magic(NONULL(Maildir), NULL) == M_IMAP
&& Maildir[m_strlen(Maildir) - 1] == '/') {
m_strcpy(p, sizeof(p), Maildir);
} else {