From: Peter Graves <peter@ar...> - 2002-12-30 17:20:31
I've no idea if a username with the @ symbol within it is valid,
but nonetheless I've an email account in which this is the case.
Anyway, the following code allows for the user to place their user
name within single quotes to avoid the problem. This still does not
allow for a ':' within the user name, but it fixed my problem.
Usernames are indeed allowed to contain '@' symbols.
The changes I actually made to the code are a little different from the
patch Robey provided.
J now supports enclosing the user name in double quotes (rather than
single quotes), like this:
or, for IMAP:
In addition, I refactored things a bit to allow for a ':' within the
Since it's a URL, purists might argue (citing RFC1738) that you should
really do it like this:
I find this form a lot harder to read (and type), however, so I've done
it the other way, which is more in the spirit of RFC822 (which of
course does not specifically apply to this case). (It was RFC822 which
convinced me to use double quotes rather than single quotes, too.)
These changes (for both POP and IMAP) are in this morning's 0.17.2+
development snapshot, available here:
http://armedbear.org/j-jar.zip (just j.jar)
Thanks for your support.