]> granicus.if.org Git - neomutt/commitdiff
Fix crash when an email disappears from IMAP
authorPietro Cerutti <gahr@gahr.ch>
Wed, 27 Feb 2019 11:47:27 +0000 (11:47 +0000)
committerRichard Russon <rich@flatcap.org>
Mon, 4 Mar 2019 12:14:54 +0000 (12:14 +0000)
Issue #1577

imap/imap.c

index 017a389ebc2c3611de866d78023f54644da7848c..042b1257b4a0e1e1fa3c3f6059046e7d28c68f61 100644 (file)
@@ -797,6 +797,7 @@ void imap_expunge_mailbox(struct Mailbox *m)
       mutt_debug(LL_DEBUG2, "Expunging message UID %u.\n", imap_edata_get(e)->uid);
 
       e->active = false;
+      e->deleted = true;
       m->size -= e->content->length;
 
       imap_cache_del(m, e);