Discussion:
[bug-mailutils] IMAP usernames sometimes need to contain "@"
積丹尼 Dan Jacobson
2018-01-18 07:55:36 UTC
Permalink
Boy you mailutils guys really really blew it, perhaps.

You never guessed that the username might need to contain a "@", and be
independent of the hostname.

$ mail --file imaps://***@jidanni.org:***@homie.mail.dreamhost.com
Cannot create mailbox imaps://***@jidanni.org:***@homie.mail.dreamhost.com: Invalid port or service specification

So you need to put a workaround into
(info "(mailutils) Remote Mailboxes")

To prove that this really works, this works fine:
$ tail .getmail/getmailrc

[retriever]
server=homie.mail.dreamhost.com
type=SimpleIMAPSSLRetriever
port=993
username=***@jidanni.org
password=MYPASS

More proof
https://help.dreamhost.com/hc/en-us/articles/215612887#Example_setup_using_a_secure_IMAP_connection
Sergey Poznyakoff
2018-01-18 17:17:17 UTC
Permalink
No need to guess. Quoting RFC 3986 (section 2.2):

If data for a URI component would conflict with a reserved
character's purpose as a delimiter, then the conflicting data must be
percent-encoded before the URI is formed.
[...]
gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"

Regards,
Sergey
積丹尼 Dan Jacobson
2018-01-19 10:29:35 UTC
Permalink
Good. Do mention that on the Info page. Thanks.
SP> No need to guess. Quoting RFC 3986 (section 2.2):

SP> If data for a URI component would conflict with a reserved
SP> character's purpose as a delimiter, then the conflicting data must be
SP> percent-encoded before the URI is formed.
SP> [...]
SP> gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@"

SP> Regards,
SP> Sergey

Loading...