imap_munge_mbox_name (mbox, sizeof (mbox), mailbox);
IMAP_DATA *idata;  if (!ctx || !ctx->data) { if (!(idata = imap_conn_find (&mx.account, option (OPTIMAPPASSIVE) ? M_IMAP_CONN_NONEW : 0))) { FREE (&mx.mbox); return -1; } } else { idata = ctx->data; }  imap_munge_mbox_name (mbox, sizeof (mbox), mx.mbox);
int imap_delete_mailbox (CONTEXT* ctx, char* mailbox){  char buf[LONG_STRING], mbox[LONG_STRING];    imap_munge_mbox_name (mbox, sizeof (mbox), mailbox);  snprintf (buf, sizeof (buf), "DELETE %s", mbox);  if (imap_exec ((IMAP_DATA*) ctx->data, buf, 0) != 0)    return -1;  return 0;}