From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.bugs Subject: bug#16946: 24.3; Rmail behaviour with a username containing "@" Date: Sun, 06 Dec 2020 03:06:39 +0000 Message-ID: <871rg34oqo.fsf@robertthorpeconsulting.com> References: <87siqwcazb.fsf@robertthorpeconsulting.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37888"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 16946@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 04:08:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klkPQ-0009l5-OL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 04:08:24 +0100 Original-Received: from localhost ([::1]:32786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klkPP-0007l4-Ey for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Dec 2020 22:08:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klkP4-0007kq-8a for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 22:08:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37074) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klkP3-0004uv-Uz for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 22:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klkP3-0004oE-OX for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2020 22:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Thorpe Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 03:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16946-submit@debbugs.gnu.org id=B16946.160722403518433 (code B ref 16946); Sun, 06 Dec 2020 03:08:01 +0000 Original-Received: (at 16946) by debbugs.gnu.org; 6 Dec 2020 03:07:15 +0000 Original-Received: from localhost ([127.0.0.1]:48620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klkOJ-0004nF-ID for submit@debbugs.gnu.org; Sat, 05 Dec 2020 22:07:15 -0500 Original-Received: from outbound-smtp09.blacknight.com ([46.22.139.14]:58001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klkOG-0004mz-EY for 16946@debbugs.gnu.org; Sat, 05 Dec 2020 22:07:13 -0500 Original-Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp09.blacknight.com (Postfix) with ESMTPS id 41C631C530C for <16946@debbugs.gnu.org>; Sun, 6 Dec 2020 03:07:06 +0000 (GMT) Original-Received: (qmail 29983 invoked from network); 6 Dec 2020 03:07:06 -0000 Original-Received: from unknown (HELO rt-inspiron-3480) (rt@robertthorpeconsulting.com@[109.76.74.4]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 6 Dec 2020 03:07:06 -0000 In-Reply-To: <87k0txhj4m.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 04 Dec 2020 13:04:57 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195066 Archived-At: Lars Ingebrigtsen writes: > Robert Thorpe 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