count = imap_read_headers (idata, idata->ctx->msgcount, count-1)+1;
static void cmd_finish (IMAP_DATA* idata){  if (!(idata->state == IMAP_SELECTED) || idata->ctx->closing)  {    mutt_clear_error ();    return;  }    if ((idata->reopen & IMAP_REOPEN_ALLOW) &&      (idata->reopen & (IMAP_EXPUNGE_PENDING|IMAP_NEWMAIL_PENDING)))  {    int count = idata->newMailCount;    if (!(idata->reopen & IMAP_EXPUNGE_PENDING) &&	(idata->reopen & IMAP_NEWMAIL_PENDING)	&& count > idata->ctx->msgcount)    {      /* read new mail messages */      dprint (2, (debugfile, "cmd_finish: Fetching new mail\n"));      count = imap_read_headers (idata, idata->ctx->msgcount, count-1)+1;      /* check_status: curs_main uses imap_check_mailbox to detect       *   whether the index needs updating */      idata->check_status = IMAP_NEWMAIL_PENDING;      idata->reopen &= ~IMAP_NEWMAIL_PENDING;    }    else    {      dprint (2, (debugfile, "cmd_finish: Expunging mailbox\n"));      imap_expunge_mailbox (idata);      idata->reopen &= ~(IMAP_EXPUNGE_PENDING|IMAP_NEWMAIL_PENDING);    }  }  idata->status = 0;}