all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Max Froumentin <max@lapin-bl.eu>
Cc: 31475@debbugs.gnu.org
Subject: bug#31475: 25.3; authinfo password backslash problem
Date: Sun, 03 Jun 2018 17:27:07 +0200	[thread overview]
Message-ID: <87muwb6gc4.fsf@gmx.de> (raw)
In-Reply-To: <rznefib1qvy.fsf@lapin-bl.eu> (Max Froumentin's message of "Wed,  16 May 2018 17:56:01 +0100")

Max Froumentin <max@lapin-bl.eu> 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:

--8<---------------cut here---------------start------------->8---
(progn
  (require 'nnimap)
  (let ((credentials (nnimap-credentials "address" "imap" "user")))
    (funcall (nth 2 credentials))))
--8<---------------cut here---------------end--------------->8---

When I run this code snippet from a fresh Emacs started with "emacs -Q",
I am asked for

--8<---------------cut here---------------start------------->8---
IMAP password for user@address: 
--8<---------------cut here---------------end--------------->8---

I enter "test\user" (without the apostrophs). Then I'm asked

--8<---------------cut here---------------start------------->8---
Save auth info to file ~/.authinfo [y/n/Ne/?]
--8<---------------cut here---------------end--------------->8---

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

--8<---------------cut here---------------start------------->8---
machine address login user port imap password test\user
--8<---------------cut here---------------end--------------->8---

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.

Best regards, Michael.





  reply	other threads:[~2018-06-03 15:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-16 16:56 bug#31475: 25.3; authinfo password backslash problem Max Froumentin
2018-06-03 15:27 ` Michael Albinus [this message]
2018-09-07 11:22   ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87muwb6gc4.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=31475@debbugs.gnu.org \
    --cc=max@lapin-bl.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.