static int imap_get_delim (IMAP_DATA *idata, CONNECTION *conn)
static int imap_get_delim (IMAP_DATA *idata)
static int imap_get_delim (IMAP_DATA *idata, CONNECTION *conn){  char buf[LONG_STRING];  char *s;  /* assume that the delim is /.  If this fails, we're in bigger trouble   * than getting the delim wrong */  idata->delim = '/';  imap_cmd_start (idata, "LIST \"\" \"\"");  do   {    if (mutt_socket_readln (buf, sizeof (buf), conn) < 0)    {      return (-1);    }    if (buf[0] == '*')     {      s = imap_next_word (buf);      if (mutt_strncasecmp ("LIST", s, 4) == 0)      {	s = imap_next_word (s);	s = imap_next_word (s);	if (s && s[0] == '\"' && s[1] && s[2] == '\"')	  idata->delim = s[1];	else if (s && s[0] == '\"' && s[1] && s[1] == '\\' && s[2] && s[3] == '\"')	  idata->delim = s[2];      }      else      {	if (conn->data && 	    imap_handle_untagged (idata, buf) != 0)	  return (-1);      }    }  }  while ((mutt_strncmp (buf, idata->seq, SEQLEN) != 0));  return 0;}