From: Thomas Roessler Date: Sun, 9 Nov 2003 21:41:28 +0000 (+0000) Subject: Fix #1692. X-Git-Tag: mutt-1-5-6-rel~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23b4f7d7363608ec0c93815ef9d7d8c59c87bfb1;p=mutt Fix #1692. --- diff --git a/mh.c b/mh.c index 79ef88e7..f3f9fae1 100644 --- 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;