#3681: Cannot use IPv6 literal address in IMAP/POP3 URL
-------------------------+----------------------
Reporter: evgeni | Owner: mutt-dev
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: mutt | Version:
Keywords: |
-------------------------+----------------------
From Debian: https://bugs.debian.org/644992
====
For tests with newly installed servers I usually access IMAP and/or
POP3 Servers directly in the URL like this:
mutt -fimap://user:[email protected]
mutt -fpop://user:[email protected]
This works correctly as expected. Now I tried the same with an IPv6
address like
mutt -fimap://user:pass@'[::1]'
mutt -fpop://user:pass@'[::1]'
but with this I run into error messages and mutt terminates with the
following messages:
imap://user:pass@[::1] is an invalid IMAP path
pop://user:pass@[::1] is an invalid POP path
I also tried the same without brackets, but this also fails (as
expected, because isn't defined whether the last colon is part of the
IP or the separator of the port number).
Maybe there is some other syntax expected, but I didn't find a hint in
the manual...
====
Attaching a (pretty ugly, IMHO) patch, that solves this issue for me.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3681>
Mutt <http://www.mutt.org/>
The Mutt mail user agent