]> Sergey Matveev's repositories - public-inbox.git/commit
net_reader: canonicalize URL args on add_url
authorEric Wong <e@80x24.org>
Sat, 12 Jun 2021 00:10:45 +0000 (00:10 +0000)
committerEric Wong <e@80x24.org>
Sun, 13 Jun 2021 17:39:38 +0000 (17:39 +0000)
commitd1dbf32d5b747deb4610f98b0befdb8b6a32243a
treec427a713ea85c5ade88f5718a9cf82bba2f9322d
parentd00c4b6d395259ed35900bf52dffc2db3a436c6a
net_reader: canonicalize URL args on add_url

This fixes cases when users specify an IMAP or NNTP URL
with standard port numbers explicitly.

In other words, this allows users to use
"lei ls-mail-source nntps://public-inbox.org:563/" and
"lei ls-mail-source imaps://public-inbox.org:993/"
without hitting "BUG:" errors.
lib/PublicInbox/NetReader.pm