]> granicus.if.org Git - neomutt/commitdiff
Fix #1692.
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 9 Nov 2003 21:41:28 +0000 (21:41 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 9 Nov 2003 21:41:28 +0000 (21:41 +0000)
mh.c

diff --git a/mh.c b/mh.c
index 79ef88e76d5fadbe73734a5b37306a509910d1ba..f3f9fae1b0544f106aac0b48408871f7935dc8dc 100644 (file)
--- a/mh.c
+++ b/mh.c
@@ -1517,7 +1517,7 @@ int maildir_check_mailbox (CONTEXT * ctx, int *index_hint)
     ctx->hdrs[i]->active = 0;
     maildir_canon_filename (buf, ctx->hdrs[i]->path, sizeof (buf));
     p = hash_find (fnames, buf);
-    if (p)
+    if (p && p->h)
     {
       /* message already exists, merge flags */
       ctx->hdrs[i]->active = 1;