From: Pietro Cerutti Date: Wed, 9 Jan 2019 09:20:35 +0000 (+0000) Subject: Revert "Don't override ndata with temporary context" X-Git-Tag: 2019-10-25~388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb7f805723a33e74cc7c32fb15face6b7b64f4ae;p=neomutt Revert "Don't override ndata with temporary context" This reverts commit c128c131185fb076476991f477565ba115352faa. --- diff --git a/mx.c b/mx.c index 7a8ce534e..6331f98e3 100644 --- a/mx.c +++ b/mx.c @@ -273,15 +273,8 @@ struct Context *mx_mbox_open(struct Mailbox *m, const char *path, int flags) /* int rc = */ mx_path_canon2(m, Folder); } - - /* mailbox can be opened twice by postpone/sendlib/trash code - * as workaround we set the context only the first time and for mailbox - * without APPEND flag */ - if (!m->ndata && !(flags & MUTT_APPEND)) - { - m->notify = ctx_mailbox_changed; - m->ndata = ctx; - } + m->notify = ctx_mailbox_changed; + m->ndata = ctx; if ((m->magic == MUTT_UNKNOWN) && (flags & MUTT_NEWFOLDER)) {