[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] pop/imap problem: user name contains '@'
From: |
Paul Vojta |
Subject: |
[bug-mailutils] pop/imap problem: user name contains '@' |
Date: |
Fri, 13 Feb 2009 19:54:17 -0800 |
User-agent: |
Mutt/1.4.2.1i |
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:
address@hidden .
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, address@hidden
- [bug-mailutils] pop/imap problem: user name contains '@',
Paul Vojta <=