if (imap_cmd_resp (idata) != IMAP_CMD_CONTINUE)
if (imap_cmd_step (idata) != IMAP_CMD_CONTINUE)
int imap_open_connection (IMAP_DATA* idata){  char buf[LONG_STRING];  if (mutt_socket_open (idata->conn) < 0)    return -1;  idata->state = IMAP_CONNECTED;  if (imap_cmd_resp (idata) != IMAP_CMD_CONTINUE)    goto bail;  if (mutt_strncmp ("* OK", idata->buf, 4) == 0)  {    if (imap_check_capabilities (idata) || imap_authenticate (idata))      goto bail;  }  else if (mutt_strncmp ("* PREAUTH", idata->buf, 9) == 0)  {    if (imap_check_capabilities (idata) != 0)      goto bail;  }   else  {    imap_error ("imap_open_connection()", buf);    goto bail;  }  FREE (&idata->capstr);  idata->state = IMAP_AUTHENTICATED;  imap_get_delim (idata);  return 0; bail:  FREE (&idata->capstr);  mutt_socket_close (idata->conn);  idata->state = IMAP_DISCONNECTED;  return -1;}