imap_error ("imap_check_mailbox", idata->buf);
imap_error ("imap_check_mailbox", idata->cmd.buf);
int imap_check_mailbox (CONTEXT *ctx, int *index_hint){  /* overload keyboard timeout to avoid many mailbox checks in a row.   * Most users don't like having to wait exactly when they press a key. */  IMAP_DATA* idata;  time_t now;  idata = (IMAP_DATA*) ctx->data;  now = time(NULL);  if (now > ImapLastCheck + Timeout) {    ImapLastCheck = now;    if (imap_exec (idata, "NOOP", 0) != 0)    {      imap_error ("imap_check_mailbox", idata->buf);      return -1;    }  }      if (idata->check_status & IMAP_NEWMAIL_PENDING)  {    idata->check_status &= ~IMAP_NEWMAIL_PENDING;    return M_NEW_MAIL;  }  /* TODO: we should be able to detect external changes and return   *   M_REOPENED here. */    return 0;}