#include <lib-lib/lib-lib.h>
-#include <lib-ui/enter.h>
-
#include "mutt.h"
#include "imap_private.h"
if (!mx.mbox) {
home_namespace = 1;
mbox[0] = '\0'; /* Do not replace "" with "INBOX" here */
- mx.mbox = m_strdup(ImapHomeNamespace);
if (mutt_bit_isset (idata->capabilities, NAMESPACE)) {
mutt_message _("Getting namespaces...");
mbox[n] = '\0';
}
}
- } while (m_strncmp(idata->cmd.buf, idata->cmd.seq, SEQLEN));
+ } while (m_strncmp(idata->cmd.buf.data, idata->cmd.seq, SEQLEN));
}
/* if we're descending a folder, mark it as current in browser_state */
}
if (imap_rename_mailbox (idata, &mx, newname) < 0) {
- mutt_error (_("Rename failed: %s"), imap_get_qualifier (idata->cmd.buf));
+ mutt_error (_("Rename failed: %s"),
+ imap_get_qualifier(idata->cmd.buf.data));
mutt_sleep (1);
goto fail;
}
imap_add_folder (idata->delim, name, noselect, noinferiors, state,
isparent);
}
- } while ((m_strncmp(idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0));
+ } while ((m_strncmp(idata->cmd.buf.data, idata->cmd.seq, SEQLEN) != 0));
p_delete(&mx.mbox);
return 0;
if ((rc = imap_cmd_step (idata)) != IMAP_CMD_CONTINUE)
break;
- s = imap_next_word (idata->cmd.buf);
+ s = imap_next_word (idata->cmd.buf.data);
if (ascii_strncasecmp ("NAMESPACE", s, 9) == 0) {
/* There are three sections to the response, User, Other, Shared,
* and maybe more by extension */
&nsi->noinferiors, &delim) != 0)
return -1;
nsi->listable |= (name != NULL);
- } while ((m_strncmp(idata->cmd.buf, idata->cmd.seq, SEQLEN) != 0));
+ } while ((m_strncmp(idata->cmd.buf.data, idata->cmd.seq, SEQLEN) != 0));
}
return 0;