goto bail;
}
- tmpctx = mx_mbox_open(NULL, ctx->mailbox->path, MUTT_APPEND);
+ tmpctx = mx_mbox_open(ctx->mailbox, NULL, MUTT_APPEND);
if (!tmpctx)
{
rc = -1;
"Saving changed messages... [%d/%d]", ctx->mailbox->msg_count),
i + 1, ctx->mailbox->msg_count);
if (!appendctx)
- appendctx = mx_mbox_open(NULL, ctx->mailbox->path, MUTT_APPEND | MUTT_QUIET);
+ appendctx = mx_mbox_open(ctx->mailbox, NULL, MUTT_APPEND | MUTT_QUIET);
if (!appendctx)
mutt_debug(1, "Error opening mailbox in append mode\n");
else
(mutt_stat_timespec_compare(sb, MUTT_STAT_MTIME, &m->stats_last_checked) > 0))
{
struct Context *ctx =
- mx_mbox_open(NULL, m->path, MUTT_READONLY | MUTT_QUIET | MUTT_NOSORT | MUTT_PEEK);
+ mx_mbox_open(m, NULL, MUTT_READONLY | MUTT_QUIET | MUTT_NOSORT | MUTT_PEEK);
if (ctx)
{
m->msg_count = ctx->mailbox->msg_count;