url_parse(): better take better care for path parts (Stephen Isard)..
commit788aad0a9b68c75f6cd7a8664792a32dcf6e45fc
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 17 Sep 2016 18:21:47 +0000 (17 20:21 +0200)
committerSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>
Sat, 17 Sep 2016 21:50:47 +0000 (17 23:50 +0200)
tree3ca6811b38d276267aad33da5c84424911520bd6
parent096809e249f45d9a1a9263266afc19831070906d
url_parse(): better take better care for path parts (Stephen Isard)..

Stephen reported

  I have an imap account to which I can connect with mailx but not s-nail.
  In the account definition in my .mailrc, I have
  account XX {
          set folder=imaps://username@servername/Mail
..
  Running s-nail with -vv I see that I am logging in successfully with
  gssapi, but then
  T2 OK Logged in
  >>> T3 SELECT "Mail/"
  T3 NO [CANNOT] Invalid mailbox name
..
  Anyway, mailx is doing the right thing for that imap server, but s-nail
  is not.

url_parse() yet doesn't normalize the input (i.e., splits it up
into its components and joins them correctly as requested).
This results in problems when there are adjacent slashes as well
as for single-slash URLs as above.
urlcrecry.c