conn->uses = 0;
CONNECTION *mutt_socket_select_connection (const IMAP_MBOX *mx, int newconn){  CONNECTION *conn;  if (! newconn)  {    conn = Connections;    while (conn)    {      if (!mutt_strcasecmp (mx->host, conn->mx.host) && (mx->port == conn->mx.port) && imap_user_match (mx, &conn->mx))	return conn;      conn = conn->next;    }  }  conn = (CONNECTION *) safe_calloc (1, sizeof (CONNECTION));  conn->bufpos = 0;  conn->available = 0;  conn->uses = 0;  memcpy (&conn->mx, mx, sizeof (conn->mx));  conn->mx.mbox = 0;  conn->preconnect = safe_strdup (ImapPreconnect);   conn->next = Connections;  Connections = conn;#ifdef USE_SSL  if (mx->socktype == M_NEW_SSL_SOCKET)   {    ssl_socket_setup (conn);  }  else#endif  {    conn->read = raw_socket_read;    conn->write = raw_socket_write;    conn->open = raw_socket_open;    conn->close = raw_socket_close;  }  return conn;}