From unknown Mon Jun 23 07:50:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18842 <18842@debbugs.gnu.org> To: bug#18842 <18842@debbugs.gnu.org> Subject: Status: 24.4; gnus not handling passwords with double quotes in .authinfo Reply-To: bug#18842 <18842@debbugs.gnu.org> Date: Mon, 23 Jun 2025 14:50:18 +0000 retitle 18842 24.4; gnus not handling passwords with double quotes in .auth= info reassign 18842 emacs,gnus submitter 18842 David Sp=C3=A5ngberg severity 18842 normal tag 18842 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 10:13:40 2014 Received: (at submit) by debbugs.gnu.org; 26 Oct 2014 14:13:40 +0000 Received: from localhost ([127.0.0.1]:36057 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiOZf-0003Nt-9D for submit@debbugs.gnu.org; Sun, 26 Oct 2014 10:13:40 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42915) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiMPO-00005E-VO for submit@debbugs.gnu.org; Sun, 26 Oct 2014 07:54:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiMPD-0007zP-Bs for submit@debbugs.gnu.org; Sun, 26 Oct 2014 07:54:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiMPD-0007zJ-8h for submit@debbugs.gnu.org; Sun, 26 Oct 2014 07:54:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiMP7-00049t-JI for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 07:54:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiMP1-0007yv-UC for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 07:54:37 -0400 Received: from tunna.org ([91.205.62.186]:33199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiMP1-0007xw-KQ for bug-gnu-emacs@gnu.org; Sun, 26 Oct 2014 07:54:31 -0400 Received: from laptop.roflmf (unknown [83.254.7.91]) by tunna.org (Postfix) with ESMTPSA id CFB0A47D12 for ; Sun, 26 Oct 2014 12:54:29 +0100 (CET) From: =?utf-8?Q?David_Sp=C3=A5ngberg?= To: bug-gnu-emacs@gnu.org Subject: 24.4; gnus not handling passwords with double quotes in .authinfo User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Date: Sun, 26 Oct 2014 12:54:29 +0100 Message-ID: <87ioj7avwq.fsf@laptop.roflmf> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 26 Oct 2014 10:13:38 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi After a recent update of emacs gnus fails to connect to a mail server with login information listed in one of the "~/.authinfo" or "~/.authinfo.gpg" files. The password in the file is quoted and contains an escaped double quote. Something like this: machine example.org login testuser password "test\"password" port 12345 gnus fails with the following messages displayed in the *messages* buffer: auth-source-netrc-parse-entries: Unexpected 'machine' token at line 2 nnimap (example) open error: 'NO (AUTHENTICATIONFAILED) Authentication failed.'. Continue? (y or n) n The problem seems to be a faulty regexp in `auth-source-netrc-parse-one'. The following code run from a clean emacs 24.4 session shows the problem: (require 'auth-source) ;; The following should return "test\"password" but instead returns ;; "test\\" (with-temp-buffer (insert "\"test\\\"password\"\n") (goto-char (point-min)) (auth-source-netrc-parse-one)) The faulty regexp in `auth-source-netrc-parse-one' I am referring to is the following: ... (looking-at "\"\\([^\"]*\\)\"") ... My current workaround is to redefine `auth-source-netrc-parse-one' in my init file like this: (defun auth-source-netrc-parse-one () "Read one thing from the current buffer." (auth-source-netrc-parse-next-interesting) (unless (eobp) (let ((matched (if (= (following-char) ?\") (read (current-buffer)) (buffer-substring (point) (progn (skip-chars-forward "^\t\n ") (point)))))) (auth-source-netrc-parse-next-interesting) matched))) This definition is based on some code in `netrc-parse' from "net/netrc.el" (maybe it is possible to use this function in gnus instead?). Best regards, David In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3) of 2014-10-21 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11601000 Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LC_MESSAGES: C value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Recent input: C-e C-x C-e C-n C-n C-M-x M-x r e p o r t G N U g n u s SPC n o t SPC h a n d l i n g SPC d o u b l e SPC q u o t e s SPC i n SPC q u o t e d SPC p a s s w o r d SPC s t r i n g e s s C-a C-e C-n C-n C-n C-n C-n C-n C-l C-n C-l C-n C-l C-n C-l C-p C-p C-p C-p C-p C-p C-p C-p C-l C-p C-l C-p C-l C-p C-l C-n C-n C-n C-n C-n C-n C-n C-n C-l C-x k y e s C-g C-g C-x k y e s M-x M-p Recent messages: Checking 70 files in /usr/share/emacs/24.4/lisp/erc... Checking 48 files in /usr/share/emacs/24.4/lisp/emulation... Checking 151 files in /usr/share/emacs/24.4/lisp/emacs-lisp... Checking 24 files in /usr/share/emacs/24.4/lisp/cedet... Checking 57 files in /usr/share/emacs/24.4/lisp/calendar... Checking 87 files in /usr/share/emacs/24.4/lisp/calc... Checking 95 files in /usr/share/emacs/24.4/lisp/obsolete... Checking for load-path shadows...done byte-code: Beginning of buffer [3 times] Auto-saving...done Quit [2 times] Load-path shadows: None found. Features: (help-mode pp shadow sort mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util help-fns mail-prsvr password-cache time-date tooltip electric uniquify 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 prog-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 nadvice 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 gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 82211 11023) (symbols 48 18873 0) (miscs 40 46 233) (strings 32 12611 4005) (string-bytes 1 356631) (vectors 16 11040) (vector-slots 8 403091 11662) (floats 8 69 402) (intervals 56 283 24) (buffers 960 14) (heap 1024 51340 1029)) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 26 19:40:24 2014 Received: (at 18842) by debbugs.gnu.org; 26 Oct 2014 23:40:24 +0000 Received: from localhost ([127.0.0.1]:36267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiXQ8-0000f7-1d for submit@debbugs.gnu.org; Sun, 26 Oct 2014 19:40:24 -0400 Received: from mail-hampton.hostforweb.net ([205.234.186.191]:34252 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiXQ5-0000et-Sc for 18842@debbugs.gnu.org; Sun, 26 Oct 2014 19:40:22 -0400 Received: from localhost.localdomain ([127.0.0.1]:40621 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.82) (envelope-from ) id 1XiXPx-0037dW-05; Sun, 26 Oct 2014 18:40:14 -0500 Date: Mon, 27 Oct 2014 08:40:09 +0900 Message-ID: From: Katsumi Yamaoka To: david@tunna.org Subject: Re: bug#18842: 24.4; gnus not handling passwords with double quotes in .authinfo References: <87ioj7avwq.fsf@laptop.roflmf> Organization: Emacsen advocacy group X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130012 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.12) Emacs/25.0.50 (i686-pc-cygwin) Cancel-Lock: sha1:47UbtXUF9uQRPmT1FinzzS/fDY4= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18842 Cc: 18842@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) On Sun, 26 Oct 2014 12:54:29 +0100, David Sp=E5ngberg wrote: > After a recent update of emacs gnus fails to connect to a mail server > with login information listed in one of the "~/.authinfo" or > "~/.authinfo.gpg" files. The password in the file is quoted and contains > an escaped double quote. Something like this: > machine example.org login testuser password "test\"password" port 12345 IBM says[1]: If the password phrase itself contains a quotation mark, use the other style of quotation mark to enclose the password phrase. I.e.: 'test"password' The rule is enough to handle such a case, isn't it? (auth-source.el supports it of course.) [1] From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 27 06:15:18 2014 Received: (at 18842) by debbugs.gnu.org; 27 Oct 2014 10:15:18 +0000 Received: from localhost ([127.0.0.1]:36390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XihKY-0000O5-5f for submit@debbugs.gnu.org; Mon, 27 Oct 2014 06:15:18 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49273 helo=mx2.suse.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XihKV-0000Nu-8o for 18842@debbugs.gnu.org; Mon, 27 Oct 2014 06:15:16 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5C6EFAC13; Mon, 27 Oct 2014 10:15:13 +0000 (UTC) From: Andreas Schwab To: Katsumi Yamaoka Subject: Re: bug#18842: 24.4; gnus not handling passwords with double quotes in .authinfo References: <87ioj7avwq.fsf@laptop.roflmf> X-Yow: The Korean War must have been fun. Date: Mon, 27 Oct 2014 11:15:13 +0100 In-Reply-To: (Katsumi Yamaoka's message of "Mon, 27 Oct 2014 08:40:09 +0900") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: 18842 Cc: 18842@debbugs.gnu.org, david@tunna.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) Katsumi Yamaoka writes: > On Sun, 26 Oct 2014 12:54:29 +0100, David SpÄngberg wrote: >> After a recent update of emacs gnus fails to connect to a mail server >> with login information listed in one of the "~/.authinfo" or >> "~/.authinfo.gpg" files. The password in the file is quoted and contains >> an escaped double quote. Something like this: > >> machine example.org login testuser password "test\"password" port 12345 > > IBM says[1]: > If the password phrase itself contains a quotation mark, use > the other style of quotation mark to enclose the password phrase. > > I.e.: 'test"password' > > The rule is enough to handle such a case, isn't it? Until you start using both. :-) Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 27 15:28:42 2014 Received: (at 18842) by debbugs.gnu.org; 27 Oct 2014 19:28:42 +0000 Received: from localhost ([127.0.0.1]:36965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xipy5-0002kx-PW for submit@debbugs.gnu.org; Mon, 27 Oct 2014 15:28:42 -0400 Received: from tunna.org ([91.205.62.186]:55251) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xipy2-0002kg-VG for 18842@debbugs.gnu.org; Mon, 27 Oct 2014 15:28:39 -0400 Received: from laptop.roflmf (unknown [83.254.7.91]) by tunna.org (Postfix) with ESMTPSA id C37D547D12; Mon, 27 Oct 2014 20:28:32 +0100 (CET) From: =?utf-8?Q?David_Sp=C3=A5ngberg?= To: Andreas Schwab Subject: Re: bug#18842: 24.4; gnus not handling passwords with double quotes in .authinfo In-Reply-To: (Andreas Schwab's message of "Mon, 27 Oct 2014 11:15:13 +0100") References: <87ioj7avwq.fsf@laptop.roflmf> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Date: Mon, 27 Oct 2014 20:28:32 +0100 Message-ID: <87ppdd71nj.fsf@laptop.roflmf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 18842 Cc: 18842@debbugs.gnu.org, Katsumi Yamaoka X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Andreas Schwab writes: > Katsumi Yamaoka writes: > >> On Sun, 26 Oct 2014 12:54:29 +0100, David Sp=C3=A5ngberg wrote: >>> After a recent update of emacs gnus fails to connect to a mail server >>> with login information listed in one of the "~/.authinfo" or >>> "~/.authinfo.gpg" files. The password in the file is quoted and contains >>> an escaped double quote. Something like this: >> >>> machine example.org login testuser password "test\"password" port 123= 45 >> >> IBM says[1]: >> If the password phrase itself contains a quotation mark, use >> the other style of quotation mark to enclose the password phrase. >> >> I.e.: 'test"password' >> >> The rule is enough to handle such a case, isn't it? This solves the problem for me at least. > Until you start using both. :-) IBM further bans using both forms at the same time so I guess it's a problem with the specification rather than the implementation in "auth-source.el". Thanks for the help :) Best regards, David From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 28 12:15:20 2014 Received: (at control) by debbugs.gnu.org; 28 Oct 2014 16:15:20 +0000 Received: from localhost ([127.0.0.1]:37882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj9QV-0006Fq-EU for submit@debbugs.gnu.org; Tue, 28 Oct 2014 12:15:19 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:48842 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xj9QS-0006Bs-86 for control@debbugs.gnu.org; Tue, 28 Oct 2014 12:15:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Xj9QP-0007eb-Eg for control@debbugs.gnu.org; Tue, 28 Oct 2014 12:15:13 -0400 Date: Tue, 28 Oct 2014 12:15:13 -0400 Message-Id: Subject: control message for bug 18842 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.6 (-----) tag 18842 notabug close 18842 From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 02 15:58:31 2014 Received: (at 18842-done) by debbugs.gnu.org; 2 Nov 2014 20:58:32 +0000 Received: from localhost ([127.0.0.1]:46426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xl2EJ-0006mi-FP for submit@debbugs.gnu.org; Sun, 02 Nov 2014 15:58:31 -0500 Received: from mail-qa0-f53.google.com ([209.85.216.53]:60011) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xl2EH-0006mQ-1w for 18842-done@debbugs.gnu.org; Sun, 02 Nov 2014 15:58:30 -0500 Received: by mail-qa0-f53.google.com with SMTP id n8so7440297qaq.40 for <18842-done@debbugs.gnu.org>; Sun, 02 Nov 2014 12:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lifelogs.com; s=google; h=from:to:cc:subject:organization:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:user-agent :mime-version:content-type:content-transfer-encoding; bh=FBeEvG3H4Ld6gRkmm0P4rc1BY72+BXLB2upOjNCJBKw=; b=N4mlX1wNSOK/UkBBDbKde7AxHJBjb4z1IqJbNcZiGVYCQxoYbxzt0NTQfl17lOX57u UdK2ltw7Yyry2F1ELUuF5xpjcVuBMzNreK8YEYdClsSmx3D2XhZxkscmKyD6mOkRfWXF ndMxGj0pv+fCkyW5H6NPpqn9S2EtRY6xA+g7U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:organization:references :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=FBeEvG3H4Ld6gRkmm0P4rc1BY72+BXLB2upOjNCJBKw=; b=WWPDIVoLu2n3Wre5EarvzR1baBaKe+alXiZIKhquKx5Z/l1YASA6zNtV2/3oEvuJGv gMsazXtH+AKge/zs1fIQ1DnaTTb11j+Pt37lXX7uXUmYJB+YyRNjjbR5jHLEonXYbCM6 8iZuk2LoC1FVa1NT5e2koVTmYzvBnZpik6c1gcL2pJGjFT2dgRg/TVXkmnaT5eoJrgYU ZkNC+9U3QBUYE0LW3kxAoXsBEKYCB6Hl8Uyn0PF+sZXkG9+56kKz9GLnd2i9GyWttJWh UH1yZ0Kb8XbWHVhFrZVUz9Yp0jnABk3o0YtPfYPQ4PDIvk8NQhLk+6zUFEEbJq7MR07C umAQ== X-Gm-Message-State: ALoCoQnT1xlHA+Ev7LB8Zd+8UF86KxRkKOcy4ITefoyri+V3x0Cu8uhjF9L8xeId/NcSlCAdrAp6 X-Received: by 10.224.73.202 with SMTP id r10mr20203850qaj.58.1414961903332; Sun, 02 Nov 2014 12:58:23 -0800 (PST) Received: from flea (c-98-229-61-72.hsd1.ma.comcast.net. [98.229.61.72]) by mx.google.com with ESMTPSA id n10sm15152947qax.40.2014.11.02.12.58.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 02 Nov 2014 12:58:22 -0800 (PST) From: Ted Zlatanov To: David =?iso-8859-1?Q?Sp=E5ngberg?= Subject: Re: bug#18842: 24.4; gnus not handling passwords with double quotes in .authinfo Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos References: <87ioj7avwq.fsf@laptop.roflmf> <87ppdd71nj.fsf@laptop.roflmf> X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Sun, 02 Nov 2014 15:58:35 -0500 In-Reply-To: <87ppdd71nj.fsf@laptop.roflmf> ("David \=\?iso-8859-1\?Q\?Sp\=E5ng\?\= \=\?iso-8859-1\?Q\?berg\=22's\?\= message of "Mon, 27 Oct 2014 20:28:32 +0100") Message-ID: <87y4rtcoas.fsf@lifelogs.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18842-done Cc: 18842-done@debbugs.gnu.org, Andreas Schwab , Katsumi Yamaoka X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On Mon, 27 Oct 2014 20:28:32 +0100 David Sp=E5ngberg wrot= e:=20 DS> Andreas Schwab writes: >> Katsumi Yamaoka writes: >>=20 >>> IBM says[1]: >>> If the password phrase itself contains a quotation mark, use >>> the other style of quotation mark to enclose the password phrase. >>>=20 >>> I.e.: 'test"password' >>>=20 >>> The rule is enough to handle such a case, isn't it? DS> This solves the problem for me at least. >> Until you start using both. :-) DS> IBM further bans using both forms at the same time so I guess it's a DS> problem with the specification rather than the implementation in DS> "auth-source.el". I've explained the situation in the auth.texi manual with this commit to gnus.git, which will be synchronized into Emacs as well: commit 01c75b7c8e4ecbdaea6dda97b113a76c60458620 Author: Ted Zlatanov Date: Sun Nov 2 15:45:34 2014 -0500 * auth.texi (Help for users): Explain quoting rules better. Background: the original netrc.el parser just used the Lisp reader. But that reader doesn't support single-quoted strings, which is the standard netrc format, so I modified the parser accordingly in gnus.git: commit 1474b920b7471e4bdb4f983b98fb767d61f8037b Author: Ted Zlatanov Date: Sat Jun 15 04:03:04 2013 -0400 auth-source netrc backend: Support single-quoted strings, multiline ent= ries. I've never seen passwords or other tokens with both single and double quotes, so IMO the current parser in `auth-source-netrc-parse-one' is sufficient. But I'm happy to take patches or demands for it to support some other style. Marking this bug as done, in any case. Ted From unknown Mon Jun 23 07:50:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 01 Dec 2014 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator