From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.bugs Subject: bug#16946: 24.3; Rmail behaviour with a username containing "@" Date: Thu, 06 Mar 2014 02:33:12 +0000 Message-ID: <87siqwcazb.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394075053 27800 80.91.229.3 (6 Mar 2014 03:04:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2014 03:04:13 +0000 (UTC) To: 16946@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 06 04:04:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WLObb-00054X-K3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Mar 2014 04:04:19 +0100 Original-Received: from localhost ([::1]:55496 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLOba-00040a-Ua for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Mar 2014 22:04:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLObR-00040M-PG for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 22:04:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLObK-0003eT-R6 for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 22:04:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLObK-0003eP-Ne for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 22:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WLObK-0006ht-34 for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 22:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Robert Thorpe Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Mar 2014 03:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16946 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139407498225674 (code B ref -1); Thu, 06 Mar 2014 03:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2014 03:03:02 +0000 Original-Received: from localhost ([127.0.0.1]:52228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLOaK-0006fi-2U for submit@debbugs.gnu.org; Wed, 05 Mar 2014 22:03:01 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52422) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLO8Y-0005sU-Tc for submit@debbugs.gnu.org; Wed, 05 Mar 2014 21:34:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLO8R-0003hR-SD for submit@debbugs.gnu.org; Wed, 05 Mar 2014 21:34:18 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:46120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLO8R-0003hN-Oq for submit@debbugs.gnu.org; Wed, 05 Mar 2014 21:34:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLO8L-0000Ho-BV for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 21:34:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLO8F-0003g9-1v for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 21:34:05 -0500 Original-Received: from outbound-smtp05.blacknight.com ([81.17.249.38]:56484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLO8E-0003fs-NW for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 21:33:58 -0500 Original-Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp05.blacknight.com (Postfix) with ESMTP id 457F3210172 for ; Thu, 6 Mar 2014 02:33:30 +0000 (UTC) Original-Received: (qmail 22515 invoked from network); 6 Mar 2014 02:33:56 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.76.195.243]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 6 Mar 2014 02:33:55 -0000 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 05 Mar 2014 22:02:58 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:86595 Archived-At: 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. I can use "%40" as in web addresses instead of the first @. If I do that then movemail works fine and all my email is downloaded into the temp file ".newmail-...." Once this happens though Rmail gets confused. Movemail creates a file containing "%" but Rmail is looking for "%40", so it can't find the file. It then report no new mail and doesn't copy the temp file into RMAIL. To solve this for myself I've edited the function rmail-insert-inbox-text just after this bit: ;; At this point, TOFILE contains the name to read: ;; Either the alternate name (if we renamed) ;; or the actual inbox (if not renaming). I've put in some code to substitute %40 for @ in tofile. That fixes the problem for me, but it's not a real fix. I think at the least the manual should tell users they can't use usernames with "@" in them. BR, Robert Thorpe In GNU Emacs 24.3.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2) of 2014-02-22 on chindi10, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.4 LTS Configured using: `configure '--build' 'i686-linux-gnu' '--build' 'i686-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=i686-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_MONETARY: en_GB.UTF-8 value of $LC_NUMERIC: en_GB.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: RMAIL Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent input: M-x r m a i l M-x r e p o r t Recent messages: Loading debian-ispell... Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done Loading debian-ispell...done Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Counting messages...done Getting mail from the remote server ... (No new mail has arrived) 0 new messages read Load-path shadows: /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell Features: (shadow sort gnus-util mail-extr emacsbug sendmail rmailmm message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 rmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)