unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 16946@debbugs.gnu.org
Subject: bug#16946: 24.3; Rmail behaviour with a username containing "@"
Date: Sun, 06 Dec 2020 03:06:39 +0000	[thread overview]
Message-ID: <871rg34oqo.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <87k0txhj4m.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 04 Dec 2020 13:04:57 +0100)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Robert Thorpe <rt@robertthorpeconsulting.com> writes:
>
>> My webspace provider gives usernames that are email addresses.  So, the
>> username for the smtp, pop and imap servers for this email address is "rt@robertthorpeconsulting.com".
>>
>> I can't use the character "@" in a username though, if it's sent to
>> movemail then that program will confuse what follows for the server
>> name.  I.e. if I do:-
>> (setq rmail-primary-inbox-list  '("imap://rt@robertthorpeconsulting.com@myserver.com")
>> Then everything after the first @ is taken to be the server address.
>
> (This bug report unfortunately got no response at the time.)
>
> I don't use pop3 myself, so I can't really test this.  I tried looking
> in the changelog to see whethers anything has changed in this area, and
> I can't see anything in particular...  but these days, we recommend the
> system-wide movemail implementation, which may or may not have this
> limitation.
>
> Are you still seeing this issue in more recent Emacs versions?  Having
> an "@" in a user name is quote common, so it's odd that we haven't seen
> more bug reports about this if it's still an issue.

Thank you for looking at my very old bug report.

I checked it recently and the problem is still there.  Notice that it
happens on IMAP and POP3.  If you look at the code I quoted above it uses
IMAP.

I think it's caused by movemail from GNU Mailutils though.  Mailutils
can't deal with two "@" symbols (one in the username and another for the
server).  I can replicate this by using movemail on the command line
without any Emacs involvement.  I think this is a bug in mailutils.
Would you agree?  If so I'll report it.

I'm not sure that it would be possible for the Mailutils maintainers to
fix it without changing the options format for the command.  On the
other hand I think the options format really should be changed.

The kludge to fix this is to use "%40" in the email address instead of
"@".  That's what I've been using.

I don't know why it hasn't been reported again.  Perhaps few people use
Rmail and have email addresses of that sort.  Or perhaps when they found
the problem they searched the web and found the mailing list discussions
where someone gave the "%40" hack.

BR,
Robert Thorpe






  reply	other threads:[~2020-12-06  3:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-06  2:33 bug#16946: 24.3; Rmail behaviour with a username containing "@" Robert Thorpe
2020-12-04 12:04 ` Lars Ingebrigtsen
2020-12-06  3:06   ` Robert Thorpe [this message]
2020-12-06 13:54     ` Lars Ingebrigtsen
2020-12-06 14:10       ` Jean Louis
2020-12-06 23:50       ` Robert Thorpe
2020-12-07 15:05         ` Lars Ingebrigtsen
2020-12-14  6:08           ` Robert Thorpe
2020-12-14 16:51             ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871rg34oqo.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=16946@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).