From 12e79d658788f64f4a9e35ea435c7eb37ab23df8 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Mon, 1 Jul 2019 09:01:50 +0000 Subject: [PATCH] Fix saving a msg to a non-existent mailbox Fixes #1762 --- commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.c b/commands.c index d4111edee..737b37f55 100644 --- a/commands.c +++ b/commands.c @@ -1072,7 +1072,7 @@ int mutt_save_message(struct Mailbox *m, struct EmailList *el, bool delete, #endif struct Mailbox *m_save = mx_path_resolve(buf); - struct Context *ctx_save = mx_mbox_open(m_save, MUTT_OPEN_NO_FLAGS); + struct Context *ctx_save = mx_mbox_open(m_save, MUTT_NEWFOLDER); if (!ctx_save) { mailbox_free(&m_save); -- 2.40.0