if (url_check_scheme (s) != U_UNKNOWN) { p = strchr(s, ':')+1; if (!strncmp (p, " q = strchr (p+2, '/'); if (!q) q = p; else p = q; }
void mutt_pretty_mailbox (char *s){  char *p = s, *q = s;  size_t len;  /* first attempt to collapse the pathname */  while (*p)  {    if (*p == '/' && p[1] == '/')    {      *q++ = '/';      p += 2;    }    else if (p[0] == '/' && p[1] == '.' && p[2] == '/')    {      *q++ = '/';      p += 3;    }    else      *q++ = *p++;  }  *q = 0;  if (Maildir && mutt_strncmp (s, Maildir, (len = mutt_strlen (Maildir))) == 0)  {    /* chop off delimiters after Maildir. '.' is a hack because IMAP can     * use arbitrary delimiters, but we may not have a connection. Could     * call an IMAP delimiter getting function here later, otherwise     * default to this. */    if (s[len] != '/' && s[len] != '.')      len--;    *s++ = '=';    memmove (s, s + len, mutt_strlen (s + len) + 1);  }  else if (mutt_strncmp (s, Homedir, (len = mutt_strlen (Homedir))) == 0 &&	   s[len] == '/')  {    *s++ = '~';    memmove (s, s + len - 1, mutt_strlen (s + len - 1) + 1);  }}