GNU bug report logs -
#5547
23.1.92; nnimap not using .authinfo.gpg
Previous Next
Reported by: Leo <sdl.web <at> gmail.com>
Date: Mon, 8 Feb 2010 23:04:02 UTC
Severity: normal
Tags: moreinfo
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5547 in the body.
You can then email your comments to 5547 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5547
; Package
emacs
.
(Mon, 08 Feb 2010 23:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Leo <sdl.web <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 08 Feb 2010 23:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I tried using gnus for gmail through imap and noticed that if I put the
following line in .authinfo.gpg (encrypted):
machine imap.gmail.com login username <at> gmail.com password secret port 993
it is not used by nnimap.
However, if I put it in .authinfo it works as expected. Since I seem to
remember that Gnus encourages the use of auth-sources, I wonder if
someone can take a look at this to ensure all components of gnus can use
.authinfo.gpg
Thanks.
Leo
In GNU Emacs 23.1.92.2 (x86_64-apple-darwin10.2.0, Carbon Version 1.6.0 AppKit 1038.25)
of 2010-02-03 on Victoria.local
Windowing system distributor `Apple Inc.', version 10.6.2
configured using `configure '--prefix=/usr/local/unix/emacs' '--with-mac''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
value of $XMODIFIERS: nil
locale-coding-system: iso-latin-1-unix
default enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect:
paredit-mode: t
dired-omit-mode: t
recentf-mode: t
ido-everywhere: t
savehist-mode: t
display-time-mode: t
xterm-mouse-mode: t
delete-selection-mode: t
global-auto-revert-mode: t
minibuffer-depth-indicate-mode: t
icomplete-mode: t
show-paren-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-encryption-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5547
; Package
emacs
.
(Tue, 09 Feb 2010 23:19:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On 2010-02-09 16:50 +0000, Ted Zlatanov wrote:
> That should work. Please:
>
> - show your auth-sources variable. It should be something like this:
>
> ((:source "~/authinfo.gpg" :host t :protocol t))
Yes. I didn't touch this variable.
> - 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?
Opening nnimap server on gmail-web...
imap: Connecting to imap.gmail.com...
imap: Opening SSL connection with `openssl s_client -quiet -ssl3 -connect %s:%p'...done
Waiting for response from imap.gmail.com...done
Parsing authinfo file `~/.authinfo'.
auth-source-user-or-password: get (login password) for gmail-web (993)
/Users/PhD/.authinfo: 0% (0/139)
/Users/PhD/.authinfo: 100% (139/139)
auth-source-user-or-password: found (login password)=SECRET for gmail-web (993)
imap: Authenticating to `imap.gmail.com' using `login'...
imap: Plaintext authentication...
byte-code: End of buffer [4 times]
Quit trying to open server nnimap+gmail-web
Opening nnimap server on gmail-web...failed
> - try with port "imaps" and without a port
Where to set the port?
Thanks.
Leo
bug reassigned from package 'emacs' to 'emacs,gnus'.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 10 Feb 2010 01:25:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#5547
; Package
emacs,gnus
.
(Wed, 10 Feb 2010 22:17:02 GMT)
Full text and
rfc822 format available.
Message #13 received at submit <at> debbugs.gnu.org (full text, mbox):
On 2010-02-10 18:40 +0000, Ted Zlatanov wrote:
> 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
Setting nnimap-authinfo-file to nil fails in the same way as the default
value which points to ~/.authinfo.
> (auth-source-pick "any server" "any port")
This returns the value as in auth-sources.
> 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 username <at> gmail.com 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.
The only success I have is to set nnimap-authinfo-file to ~/.authinfo.gpg.
Otherwise nothing is read.
> Ted
Sorry I could not look into the problem further at the moment due to
other work. But I will come back to this maybe in May if it hasn't been
fixed. I have kept a note about this.
Thanks.
Leo
Added tag(s) moreinfo.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sat, 13 Feb 2010 19:36:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org, bugs <at> gnus.org
:
bug#5547
; Package
emacs,gnus
.
(Sun, 20 Jun 2010 09:17:02 GMT)
Full text and
rfc822 format available.
Message #18 received at 5547 <at> debbugs.gnu.org (full text, mbox):
Hello,
I think this bug can be closed. I think the problem was I didn't use a
correct machine name for the configuration:
(nnimap "gmail" (nnimap-server-address "imap.gmail.com")
(nnimap-server-port 993))
The machine name should be gmail and not imap.gmail.com.
Thanks.
Leo
bug closed, send any further explanations to Leo <sdl.web <at> gmail.com>
Request was from
Chong Yidong <cyd <at> stupidchicken.com>
to
control <at> debbugs.gnu.org
.
(Sun, 20 Jun 2010 16:29:02 GMT)
Full text and
rfc822 format available.
Message #21 received at 5547-done <at> debbugs.gnu.org (full text, mbox):
The following message is a courtesy copy of an article
that has been posted to gnu.emacs.bug as well.
On Sun, 20 Jun 2010 10:16:33 +0100 Leo <sdl.web <at> gmail.com> wrote:
L> I think this bug can be closed. I think the problem was I didn't use a
L> correct machine name for the configuration:
L> (nnimap "gmail" (nnimap-server-address "imap.gmail.com")
L> (nnimap-server-port 993))
L> The machine name should be gmail and not imap.gmail.com.
Thanks for writing back, Leo. I'll try closing this bug through the CC
on this message.
Ted
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 07 Aug 2010 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.