Gnus development mailing list
 help / color / mirror / Atom feed
* Bug: auth-sources not set before retrieving authinfo
@ 2012-06-04  8:56 XeCycle
  2012-06-06  3:55 ` XeCycle
  2012-06-10 19:02 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 9+ messages in thread
From: XeCycle @ 2012-06-04  8:56 UTC (permalink / raw)
  To: ding

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

Hello, I'm bothered by the behaviour that Gnus always asks me to
decrypt my .authinfo.gpg, though none of the servers need
authentication.

I had a look at the source and found the bug here:

At nntp.el, around line 1197, at beginning of defun
nntp-send-authinfo, a call to auth-source-search is made.  This
function parses entries in auth-sources, which should be
nntp-authinfo-file, as suggested by the manual; but we didn't set
it.  Therefore it's trying to visit the default auth source
files, and decrypts that.

I guess the solution is to add this in the let*, before that
call:

(auth-sources (list nntp-authinfo-file))

Can you add it and try?

PS. I don't know why specifying (nntp-authinfo-function my-no-op)
doesn't work, where my-no-op is a function that accepts any
parameter and does nothing; it's never called.  Perhaps another
bug out there.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

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

end of thread, other threads:[~2012-12-23  2:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04  8:56 Bug: auth-sources not set before retrieving authinfo XeCycle
2012-06-06  3:55 ` XeCycle
2012-12-23  2:35   ` Ted Zlatanov
2012-06-10 19:02 ` Lars Magne Ingebrigtsen
2012-06-10 19:09   ` Ted Zlatanov
2012-06-11  4:26     ` XeCycle
2012-07-18 14:13       ` Ted Zlatanov
2012-12-23  2:37         ` Ted Zlatanov
2012-06-11  4:03   ` XeCycle

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).