X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fcommand.c;h=2039e54ed74e388218256157e2f915fe9d0524b7;hb=ea912b20ba2b3b9dfdbbae758ad56263c9aa41b3;hp=49e4441962d2b56c9f070bbf158ec64c030d669d;hpb=c8becc4d099cee8c18ebd967720ce7204311d817;p=apps%2Fmadmutt.git diff --git a/imap/command.c b/imap/command.c index 49e4441..2039e54 100644 --- a/imap/command.c +++ b/imap/command.c @@ -492,6 +492,9 @@ static void cmd_parse_fetch (IMAP_DATA * idata, char *s) for (cur = 0; cur < idata->ctx->msgcount; cur++) { h = idata->ctx->hdrs[cur]; + if (!h) + break; + if (h->active && h->index + 1 == msgno) { debug_print (2, ("Message UID %d updated\n", HEADER_DATA (h)->uid)); break;