From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.bugs Subject: bug#18842: 24.4; gnus not handling passwords with double quotes in .authinfo Date: Sun, 02 Nov 2014 15:58:35 -0500 Organization: =?UTF-8?Q?=D0=A2=D0=B5=D0=BE=D0=B4=D0=BE=D1=80_?= =?UTF-8?Q?=D0=97=D0=BB=D0=B0=D1=82=D0=B0=D0=BD=D0=BE=D0=B2?= @ Cienfuegos Message-ID: <87y4rtcoas.fsf@lifelogs.com> References: <87ioj7avwq.fsf@laptop.roflmf> <87ppdd71nj.fsf@laptop.roflmf> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1414961963 12547 80.91.229.3 (2 Nov 2014 20:59:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 20:59:23 +0000 (UTC) Cc: 18842-done@debbugs.gnu.org, Andreas Schwab , Katsumi Yamaoka To: David =?UTF-8?Q?Sp=C3=A5ngberg?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 02 21:59:16 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 1Xl2F2-0005i3-EM for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Nov 2014 21:59:16 +0100 Original-Received: from localhost ([::1]:59241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl2F2-0002Jj-5Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Nov 2014 15:59:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl2Eu-0002Ja-3v for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2014 15:59:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl2Ep-0007J1-Es for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2014 15:59:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl2Ep-0007Ir-8F for bug-gnu-emacs@gnu.org; Sun, 02 Nov 2014 15:59:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xl2Eo-0006nY-BK; Sun, 02 Nov 2014 15:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ted Zlatanov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sun, 02 Nov 2014 20:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18842 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: notabug Original-Received: via spool by 18842-done@debbugs.gnu.org id=D18842.141496191226088 (code D ref 18842); Sun, 02 Nov 2014 20:59:02 +0000 Original-Received: (at 18842-done) by debbugs.gnu.org; 2 Nov 2014 20:58:32 +0000 Original-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 Original-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 Original-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) Original-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) 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 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") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) 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:95400 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