From: Pietro Cerutti Date: Mon, 14 Jan 2019 09:09:10 +0000 (+0000) Subject: Allow the creation of a new mbox when saving to a local file X-Git-Tag: 2019-10-25~380 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4ea472ea57f4ab46c8c48e47935005bf55acbc0;p=neomutt Allow the creation of a new mbox when saving to a local file Fixes #1537 --- diff --git a/mx.c b/mx.c index 6331f98e3..511d9f360 100644 --- a/mx.c +++ b/mx.c @@ -276,7 +276,7 @@ struct Context *mx_mbox_open(struct Mailbox *m, const char *path, int flags) m->notify = ctx_mailbox_changed; m->ndata = ctx; - if ((m->magic == MUTT_UNKNOWN) && (flags & MUTT_NEWFOLDER)) + if ((m->magic == MUTT_UNKNOWN) && (flags & (MUTT_NEWFOLDER | MUTT_APPEND))) { m->magic = MboxType; m->mx_ops = mx_get_ops(m->magic);