bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug#5547: 23.1.92; nnimap not using .authinfo.gpg


From: Ted Zlatanov
Subject: Re: bug#5547: 23.1.92; nnimap not using .authinfo.gpg
Date: Wed, 10 Feb 2010 12:40:30 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.90 (gnu/linux)

On Tue, 09 Feb 2010 23:17:35 +0000 Leo <address@hidden> wrote: 

L> On 2010-02-09 16:50 +0000, Ted Zlatanov wrote:
>> - set auth-source-debug to t and look in *Messages*.  Is it accessing
>> the .gpg file and opening it?  What values does it print for the
>> username and password?

L> Opening nnimap server on gmail-web...
L> imap: Connecting to imap.gmail.com...
L> imap: Opening SSL connection with `openssl s_client -quiet -ssl3 -connect 
%s:%p'...done
L> Waiting for response from imap.gmail.com...done
L> Parsing authinfo file `~/.authinfo'.
L> auth-source-user-or-password: get (login password) for gmail-web (993)
L> /Users/PhD/.authinfo: 0% (0/139)
L> /Users/PhD/.authinfo: 100% (139/139)
L> auth-source-user-or-password: found (login password)=SECRET for gmail-web 
(993)
L> imap: Authenticating to `imap.gmail.com' using `login'...
L> imap: Plaintext authentication...
L> byte-code: End of buffer [4 times]
L> Quit trying to open server nnimap+gmail-web
L> Opening nnimap server on gmail-web...failed

It may be a bug but I'm not sure where it's coming from.  It may be that
nnimap-open-connection is not prioritizing auth-source over
nnimap-authinfo-file.  Can you make sure nnimap-authinfo-file is nil?
Does it still fail in that case?  Finally, check

(auth-source-pick "any server" "any port")

What does it return?  The log messages are impying auth-source is
checking ~/.authinfo.

If none of this helps, look in nnimap-open-connection and trace the
sequence of events, it's pretty clear how it happens.

>> - try with port "imaps" and without a port

L> Where to set the port?

In the authinfo file, where it's '993' currently:

machine imap.gmail.com login address@hidden password secret port 993

...but that's not the problem, I think.  Try setting
auth-source-hide-passwords to nil anyhow and redo the attempt to ensure
your password is correct.

Ted


reply via email to

[Prev in Thread] Current Thread [Next in Thread]