From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#31475: 25.3; authinfo password backslash problem Date: Fri, 07 Sep 2018 13:22:18 +0200 Message-ID: <87a7ot3639.fsf@gmx.de> References: <87muwb6gc4.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536319270 31218 195.159.176.226 (7 Sep 2018 11:21:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 7 Sep 2018 11:21:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 31475-done@debbugs.gnu.org To: Max Froumentin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 07 13:21:06 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyEoz-000810-Lx for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2018 13:21:05 +0200 Original-Received: from localhost ([::1]:37948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyEr3-0000mj-De for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Sep 2018 07:23:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60414) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fyEqx-0000lw-GL for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 07:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fyEqs-0004Xs-Gr for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 07:23:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fyEqs-0004Wy-9o for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 07:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fyEqs-0007Le-5J for bug-gnu-emacs@gnu.org; Fri, 07 Sep 2018 07:23:02 -0400 Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Sep 2018 11:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 31475 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: unreproducible Mail-Followup-To: 31475@debbugs.gnu.org, michael.albinus@gmx.de, max@lapin-bl.eu Original-Received: via spool by 31475-done@debbugs.gnu.org id=D31475.153631935428186 (code D ref 31475); Fri, 07 Sep 2018 11:23:01 +0000 Original-Received: (at 31475-done) by debbugs.gnu.org; 7 Sep 2018 11:22:34 +0000 Original-Received: from localhost ([127.0.0.1]:48872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyEqP-0007KW-UJ for submit@debbugs.gnu.org; Fri, 07 Sep 2018 07:22:34 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:36287) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fyEqO-0007KI-49 for 31475-done@debbugs.gnu.org; Fri, 07 Sep 2018 07:22:32 -0400 Original-Received: from detlef.gmx.de ([212.86.51.196]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LuwiT-1fpoex3VZ3-0103MM; Fri, 07 Sep 2018 13:22:19 +0200 In-Reply-To: <87muwb6gc4.fsf@gmx.de> (Michael Albinus's message of "Sun, 03 Jun 2018 17:27:07 +0200") X-Provags-ID: V03:K1:l5vIgSpxUobyolS/baokB6Qrh1f8npSppB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.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:150118 Archived-At: Michael Albinus writes: Hi Max, >> Assumption: >> User's IMAP password has a backslash character ('\') in it. >> >> Steps: >> 1. Setup gnus so it connects to an imap backend >> 2. Start gnus >> 3. Enter the username and password of the IMAP account >> 4. Say yes to saving the credentials in .authinfo >> 5. Quit emacs >> 6. Restart emacs >> 7. M-x gnus >> 8. Authentication fails >> >> The password saved in the .authinfo file has its backlash escaped >> ('\\'). If the file is edited directly and the extra backslash is removed, >> authentication works again. >> >> In GNU Emacs 25.3.1 (x86_64-apple-darwin16.7.0, NS appkit-1504.83 Version 10.12.6 (Build 16G1036)) > > I cannot reproduce it here, using > > In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) > > The following is an extract of nnimap.el, which I have used for testing: > > (progn > (require 'nnimap) > (let ((credentials (nnimap-credentials "address" "imap" "user"))) > (funcall (nth 2 credentials)))) > > > When I run this code snippet from a fresh Emacs started with "emacs -Q", > I am asked for > > IMAP password for user@address: > > > I enter "test\user" (without the apostrophs). Then I'm asked > > Save auth info to file ~/.authinfo [y/n/Ne/?] > > > Now I type "y" (without the apostrophs), and see the result of the > evaluation in the minibuffer. And in ~/.authinfo, there is a new line > > machine address login user port imap password test\user > > Looks like expected. Could you pls run the same scenario on your > machine? Maybe there's a difference because you use macOS, and I use GNU > Linux. No reply, so I'm closing this bug. Best regards, Michael.