Gnus development mailing list
 help / color / mirror / Atom feed
* Saved authinfo not used with Gmail
@ 2012-03-20  6:48 Scott Jaderholm
  2012-03-20 22:12 ` 황병희
  2012-03-22  2:39 ` Michael Heerdegen
  0 siblings, 2 replies; 7+ messages in thread
From: Scott Jaderholm @ 2012-03-20  6:48 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

Hi,

I'm having trouble with Gnus and authinfo with Gmail/IMAP. When I start
Gnus it asks for a password for jaderholm@gmail.com@imap.gmail.com. I type
in my password and it asks to save it in ~/.authinfo. Gnus logs in fine.
Next time I start Gnus though it asks for the password again and then
writes another identical line to ~/.authinfo. I can't figure out why it
doesn't use the line/password that's there that it wrote.

Ma Gnus v0.4
GNU Emacs 24.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of
2012-03-16 on haz
-rw------- 1 scott scott 210 2012-03-19 23:41 .authinfo
machine imap.gmail.com login jaderholm@gmail.com password secret

(setq gnus-select-method
      '(nnimap "gmail"
              (nnimap-address "imap.gmail.com")
              (nnimap-user "jaderholm@gmail.com")
              (nnimap-server-port 993)
              (nnimap-authinfo-file "~/.authinfo")
              (nnimap-stream ssl)
              (nnir-search-engine imap)))

Any ideas?

Thanks,
Scott

[-- Attachment #2: Type: text/html, Size: 1335 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Saved authinfo not used with Gmail
  2012-03-20  6:48 Saved authinfo not used with Gmail Scott Jaderholm
@ 2012-03-20 22:12 ` 황병희
  2012-03-22  1:09   ` Scott Jaderholm
  2012-03-22  2:39 ` Michael Heerdegen
  1 sibling, 1 reply; 7+ messages in thread
From: 황병희 @ 2012-03-20 22:12 UTC (permalink / raw)
  To: Scott Jaderholm; +Cc: ding

Scott Jaderholm <jaderholm@gmail.com> writes:

> Hi,
>
> I'm having trouble with Gnus and authinfo with Gmail/IMAP. When I
> start Gnus it asks for a password for
> jaderholm@gmail.com@imap.gmail.com. I type in my password and it asks
> to save it in ~/.authinfo. Gnus logs in fine. Next time I start Gnus
> though it asks for the password again and then writes another
> identical line to ~/.authinfo. I can't figure out why it doesn't use
> the line/password that's there that it wrote.
>
> Ma Gnus v0.4
> GNU Emacs 24.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of
> 2012-03-16 on haz
> -rw------- 1 scott scott 210 2012-03-19 23:41 .authinfo
> machine imap.gmail.com login jaderholm@gmail.com password secret
                                                            ^^^^^^
Well if i correct my memory, you would be remove the above line "secret".

> (setq gnus-select-method
>       '(nnimap "gmail"
>               (nnimap-address "imap.gmail.com")
>               (nnimap-user "jaderholm@gmail.com")
>               (nnimap-server-port 993)
>               (nnimap-authinfo-file "~/.authinfo")
>               (nnimap-stream ssl)
>               (nnir-search-engine imap)))
>
> Any ideas?
>
> Thanks,
> Scott
>
>

-- 
ㄱㅅㅎㄴㄷ!



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Saved authinfo not used with Gmail
  2012-03-20 22:12 ` 황병희
@ 2012-03-22  1:09   ` Scott Jaderholm
  0 siblings, 0 replies; 7+ messages in thread
From: Scott Jaderholm @ 2012-03-22  1:09 UTC (permalink / raw)
  To: 황병희; +Cc: ding

2012/3/20 황병희 <soyeomul@kr.gnus.pro>
>
> > Ma Gnus v0.4
> > GNU Emacs 24.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of
> > 2012-03-16 on haz
> > -rw------- 1 scott scott 210 2012-03-19 23:41 .authinfo
> > machine imap.gmail.com login jaderholm@gmail.com password secret
>                                                            ^^^^^^
> Well if i correct my memory, you would be remove the above line "secret".

Thanks for responding, but I don't follow. Maybe you can explain a
little more what you're thinking. Are you saying remove my password
(secret here), that doesn't seem likely to make Gnus stop prompting
for it every time. The line above that is not in the file. Removing
the username like the arrows are pointing at doesn't seem to make
sense.

Scott



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Saved authinfo not used with Gmail
  2012-03-20  6:48 Saved authinfo not used with Gmail Scott Jaderholm
  2012-03-20 22:12 ` 황병희
@ 2012-03-22  2:39 ` Michael Heerdegen
  2012-03-22  3:30   ` Scott Jaderholm
  1 sibling, 1 reply; 7+ messages in thread
From: Michael Heerdegen @ 2012-03-22  2:39 UTC (permalink / raw)
  To: ding

Scott Jaderholm <jaderholm@gmail.com> writes:

> I'm having trouble with Gnus and authinfo with Gmail/IMAP. When I
> start Gnus it asks for a password for
> jaderholm@gmail.com@imap.gmail.com. I type in my password and it asks
> to save it in ~/.authinfo. Gnus logs in fine. Next time I start Gnus
> though it asks for the password again and then writes another
> identical line to ~/.authinfo. I can't figure out why it doesn't use
> the line/password that's there that it wrote.
>
> Ma Gnus v0.4
> GNU Emacs 24.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-03-16 on haz
> -rw------- 1 scott scott 210 2012-03-19 23:41 .authinfo
> machine imap.gmail.com login jaderholm@gmail.com password secret
>
> (setq gnus-select-method
>       '(nnimap "gmail"
>               (nnimap-address "imap.gmail.com")
>               (nnimap-user "jaderholm@gmail.com")
>               (nnimap-server-port 993)
>               (nnimap-authinfo-file "~/.authinfo")
>               (nnimap-stream ssl)
>               (nnir-search-engine imap)))

Just a guess: can you try replacing

   (nnimap-user "jaderholm@gmail.com")

with

   (nnimap-user "jaderholm")

in your select method?


Michael



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Saved authinfo not used with Gmail
  2012-03-22  2:39 ` Michael Heerdegen
@ 2012-03-22  3:30   ` Scott Jaderholm
  2012-03-22  4:29     ` Michael Heerdegen
  2012-03-22 19:21     ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 7+ messages in thread
From: Scott Jaderholm @ 2012-03-22  3:30 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: ding

On Wed, Mar 21, 2012 at 7:39 PM, Michael Heerdegen
<michael_heerdegen@web.de> wrote:
> Scott Jaderholm <jaderholm@gmail.com> writes:
>
>> I'm having trouble with Gnus and authinfo with Gmail/IMAP. When I
>> start Gnus it asks for a password for
>> jaderholm@gmail.com@imap.gmail.com. I type in my password and it asks
>> to save it in ~/.authinfo. Gnus logs in fine. Next time I start Gnus
>> though it asks for the password again and then writes another
>> identical line to ~/.authinfo. I can't figure out why it doesn't use
>> the line/password that's there that it wrote.
>>
>> Ma Gnus v0.4
>> GNU Emacs 24.0.93.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-03-16 on haz
>> -rw------- 1 scott scott 210 2012-03-19 23:41 .authinfo
>> machine imap.gmail.com login jaderholm@gmail.com password secret
>>
>> (setq gnus-select-method
>>       '(nnimap "gmail"
>>               (nnimap-address "imap.gmail.com")
>>               (nnimap-user "jaderholm@gmail.com")
>>               (nnimap-server-port 993)
>>               (nnimap-authinfo-file "~/.authinfo")
>>               (nnimap-stream ssl)
>>               (nnir-search-engine imap)))
>
> Just a guess: can you try replacing
>
>   (nnimap-user "jaderholm@gmail.com")
>
> with
>
>   (nnimap-user "jaderholm")
>
> in your select method?

Doesn't help. I figured out the problem though. Whatever's reading
.authinfo (auth-source.el?) does not support reading a password that
starts with #. I had to include the password in quotes in .authinfo.

Scott



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Saved authinfo not used with Gmail
  2012-03-22  3:30   ` Scott Jaderholm
@ 2012-03-22  4:29     ` Michael Heerdegen
  2012-03-22 19:21     ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 7+ messages in thread
From: Michael Heerdegen @ 2012-03-22  4:29 UTC (permalink / raw)
  To: ding

Scott Jaderholm <jaderholm@gmail.com> writes:

> >> I'm having trouble with Gnus and authinfo with Gmail/IMAP. When I
> >> start Gnus it asks for a password for
> >> jaderholm@gmail.com@imap.gmail.com. I type in my password and it asks
> >> to save it in ~/.authinfo. Gnus logs in fine. Next time I start Gnus
> >> though it asks for the password again and then writes another
> >> identical line to ~/.authinfo. I can't figure out why it doesn't use
> >> the line/password that's there that it wrote.

> I figured out the problem though. Whatever's reading .authinfo
> (auth-source.el?) does not support reading a password that starts with
> #. I had to include the password in quotes in .authinfo.

Then it's IMHO a bug.  If you can reproduce this problem with an
up-to-date Gnus in emacs -Q, then I suggest M-x report-gnus-bug.


Michael.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Saved authinfo not used with Gmail
  2012-03-22  3:30   ` Scott Jaderholm
  2012-03-22  4:29     ` Michael Heerdegen
@ 2012-03-22 19:21     ` Lars Magne Ingebrigtsen
  1 sibling, 0 replies; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2012-03-22 19:21 UTC (permalink / raw)
  To: Scott Jaderholm; +Cc: Michael Heerdegen, ding

Scott Jaderholm <jaderholm@gmail.com> writes:

> Whatever's reading .authinfo (auth-source.el?) does not support
> reading a password that starts with #. I had to include the password
> in quotes in .authinfo.

Hm.  The "#" character is the comment character for the .netrc syntax
(which .authinfo uses, too).  So I think that's correct behaviour.

What's not correct is that auth-source wrote the token unquoted to the
file in the first place.  I'll fix that.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-22 19:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-20  6:48 Saved authinfo not used with Gmail Scott Jaderholm
2012-03-20 22:12 ` 황병희
2012-03-22  1:09   ` Scott Jaderholm
2012-03-22  2:39 ` Michael Heerdegen
2012-03-22  3:30   ` Scott Jaderholm
2012-03-22  4:29     ` Michael Heerdegen
2012-03-22 19:21     ` Lars Magne Ingebrigtsen

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 NNTP newsgroup(s).