X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fcommand.c;h=2039e54ed74e388218256157e2f915fe9d0524b7;hp=49e4441962d2b56c9f070bbf158ec64c030d669d;hb=13eb1efd399874a522755a9b2f0ff9f91c4aa362;hpb=c8becc4d099cee8c18ebd967720ce7204311d817 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;