]> granicus.if.org Git - neomutt/commitdiff
mxapi: pass Mailbox
authorRichard Russon <rich@flatcap.org>
Mon, 29 Oct 2018 10:00:53 +0000 (10:00 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 30 Oct 2018 23:55:16 +0000 (23:55 +0000)
editmsg.c
imap/imap.c
mailbox.c

index ab7250ed2722db2cac8eb1fc5531b3fb5d8e19bf..55b9a3b027388d847403d23d11c8672f08fc1447 100644 (file)
--- a/editmsg.c
+++ b/editmsg.c
@@ -186,7 +186,7 @@ static int edit_or_view_one_message(bool edit, struct Context *ctx, struct Email
     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;
index 078317c03c5fe21278441ace8d75c033029fb22c..1f607f7b5c1605d222cca2feecf5a4ae92407ac8 100644 (file)
@@ -2149,7 +2149,7 @@ int imap_sync_mailbox(struct Context *ctx, bool expunge)
                               "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
index 3c17d1031e0e9aa0321b12fbecfad70aa32a94c2..9b5774485432ebf10bc387275397fce07f3a6ff3 100644 (file)
--- a/mailbox.c
+++ b/mailbox.c
@@ -280,7 +280,7 @@ static int mailbox_mbox_check(struct Mailbox *m, struct stat *sb, bool check_sta
       (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;