Folks:
Gnu mailutils (and mailx in particular) seems to be unable to connect
to a POP or IMAP server if the user name contains the '@' character.
This is becoming increasingly common, as often a single POP or IMAP server
will serve users with varying FQDNs, while avoiding namespace collisions
between those domains. For example, I have a POP account at the
server pop.att.yahoo.com, whose user name is my entire email address:
[email protected] .
Here's a quick patch (possibly not ideal):
------
--- mailutils-2.0/mailbox/url.c.orig 2008-12-08 11:06:08.000000000 -0800
+++ mailutils-2.0/mailbox/url.c 2009-02-13 19:51:56.000000000 -0800
@@ -389,7 +389,8 @@
else
{
/* Split into LHS and RHS of the '@', and then parse each side. */
- u->host = strchr (name, '@');
+ /* The user name may contain '@', so take the last one. */
+ u->host = strrchr (name, '@');
if (u->host == NULL)
u->host = name;
else
------
The documentation may need to be changed, too.
FWIW: mailutils-2.0, Debian Linux unstable, x86_64.
./configure DEFAULT_CUPS_CONFDIR=/etc/cups --disable-mh-utils \
--with-guiledir=/usr/share/guile/site --with-gnutls
--Paul Vojta, [email protected]
_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils