]> granicus.if.org Git - neomutt/commitdiff
Revert "Don't override ndata with temporary context"
authorPietro Cerutti <gahr@gahr.ch>
Wed, 9 Jan 2019 09:20:35 +0000 (09:20 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Wed, 9 Jan 2019 09:20:35 +0000 (09:20 +0000)
This reverts commit c128c131185fb076476991f477565ba115352faa.

mx.c

diff --git a/mx.c b/mx.c
index 7a8ce534ec68e53c822a4e03aa4911229916847a..6331f98e3b2f66479f53eb790723f6ecb14aa634 100644 (file)
--- 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))
   {