]> granicus.if.org Git - neomutt/commitdiff
Fix saving a msg to a non-existent mailbox
authorPietro Cerutti <gahr@gahr.ch>
Mon, 1 Jul 2019 09:01:50 +0000 (09:01 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 2 Jul 2019 11:51:05 +0000 (12:51 +0100)
Fixes #1762

commands.c

index d4111edeef2c09c092f90517d7f1efa6d14eb5cd..737b37f5527e04de39a8b26de80e47a70565ba41 100644 (file)
@@ -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);