* Re: bug#5547: 23.1.92; nnimap not using .authinfo.gpg
[not found] <mailman.882.1265671342.14305.bug-gnu-emacs@gnu.org>
@ 2010-02-09 16:50 ` Ted Zlatanov
2010-02-08 23:02 ` Leo
[not found] ` <mailman.962.1265757746.14305.bug-gnu-emacs@gnu.org>
0 siblings, 2 replies; 6+ messages in thread
From: Ted Zlatanov @ 2010-02-09 16:50 UTC (permalink / raw)
To: bug-gnu-emacs
On Mon, 08 Feb 2010 23:02:31 +0000 Leo <sdl.web@gmail.com> wrote:
L> I tried using gnus for gmail through imap and noticed that if I put the
L> following line in .authinfo.gpg (encrypted):
L> machine imap.gmail.com login username@gmail.com password secret port 993
L> it is not used by nnimap.
L> However, if I put it in .authinfo it works as expected. Since I seem to
L> remember that Gnus encourages the use of auth-sources, I wonder if
L> someone can take a look at this to ensure all components of gnus can use
L> .authinfo.gpg
That should work. Please:
- show your auth-sources variable. It should be something like this:
((:source "~/authinfo.gpg" :host t :protocol t))
- 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?
- try with port "imaps" and without a port
Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#5547: 23.1.92; nnimap not using .authinfo.gpg
@ 2010-02-08 23:02 ` Leo
2010-02-09 23:17 ` Leo
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Leo @ 2010-02-08 23:02 UTC (permalink / raw)
To: 5547
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@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#5547: 23.1.92; nnimap not using .authinfo.gpg
2010-02-08 23:02 ` Leo
@ 2010-02-09 23:17 ` Leo
2010-02-10 22:15 ` Leo
2010-06-20 9:16 ` Leo
2 siblings, 0 replies; 6+ messages in thread
From: Leo @ 2010-02-09 23:17 UTC (permalink / raw)
To: bug-gnu-emacs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#5547: 23.1.92; nnimap not using .authinfo.gpg
2010-02-08 23:02 ` Leo
2010-02-09 23:17 ` Leo
@ 2010-02-10 22:15 ` Leo
2010-06-20 9:16 ` Leo
2 siblings, 0 replies; 6+ messages in thread
From: Leo @ 2010-02-10 22:15 UTC (permalink / raw)
To: bug-gnu-emacs
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@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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#5547: 23.1.92; nnimap not using .authinfo.gpg
2010-02-08 23:02 ` Leo
2010-02-09 23:17 ` Leo
2010-02-10 22:15 ` Leo
@ 2010-06-20 9:16 ` Leo
2 siblings, 0 replies; 6+ messages in thread
From: Leo @ 2010-06-20 9:16 UTC (permalink / raw)
To: 5547
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
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.962.1265757746.14305.bug-gnu-emacs@gnu.org>]
* Re: bug#5547: 23.1.92; nnimap not using .authinfo.gpg
[not found] ` <mailman.962.1265757746.14305.bug-gnu-emacs@gnu.org>
@ 2010-02-10 18:40 ` Ted Zlatanov
0 siblings, 0 replies; 6+ messages in thread
From: Ted Zlatanov @ 2010-02-10 18:40 UTC (permalink / raw)
To: bug-gnu-emacs
On Tue, 09 Feb 2010 23:17:35 +0000 Leo <sdl.web@gmail.com> 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 username@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.
Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-06-20 9:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.882.1265671342.14305.bug-gnu-emacs@gnu.org>
2010-02-09 16:50 ` bug#5547: 23.1.92; nnimap not using .authinfo.gpg Ted Zlatanov
2010-02-08 23:02 ` Leo
2010-02-09 23:17 ` Leo
2010-02-10 22:15 ` Leo
2010-06-20 9:16 ` Leo
[not found] ` <mailman.962.1265757746.14305.bug-gnu-emacs@gnu.org>
2010-02-10 18:40 ` Ted Zlatanov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).