From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16316 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.user Subject: Re: Is explicit inhibition of authentication supported now? Date: Mon, 10 Jun 2013 00:14:41 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1370838009 7686 80.91.229.3 (10 Jun 2013 04:20:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2013 04:20:09 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Jun 10 06:20:11 2013 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UltaS-0003ol-Sw for gegu-info-gnus-english@m.gmane.org; Mon, 10 Jun 2013 06:20:09 +0200 Original-Received: from localhost ([::1]:52257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UltaS-0006gl-FC for gegu-info-gnus-english@m.gmane.org; Mon, 10 Jun 2013 00:20:08 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.n-ix.net!news.erfurt.thur.de!quimby.gnus.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 63 Original-NNTP-Posting-Host: 85-220-3-95.dsl.dynamic.simnet.is Original-X-Trace: quimby.gnus.org 1370837682 8101 85.220.3.95 (10 Jun 2013 04:14:42 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Mon, 10 Jun 2013 04:14:42 +0000 (UTC) User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.3.50 (darwin) X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Cancel-Lock: sha1:j++bVEmx2hEERpzevfb91Qv1rYk= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:87441 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16316 Archived-At: --=-=-= Content-Type: text/plain On Fri, 10 May 2013 23:30:00 +0800 XeCycle wrote: X> Some time ago I was told that upon connecting a NNTP server the X> authinfo file is always read, so as not to miss any lines with X> `force' for the server. But it causes inconvenience when my X> authinfo file is encrypted. X> So I came again to ask, can I now inhibit reading of X> authentication information for a specific server? If not, I'm X> seriously requesting this feature. I do have some sort of GPG X> agent running, but I think it better to give this option. Hi Carl, see the attached patch. I am not sure if the parameter will be called `nntp-auth' but please try applying the patch once and see if the logic is correct. Let me know if you're not sure how to use this. Thanks Ted --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=nntp-auth.patch diff --git a/lisp/nntp.el b/lisp/nntp.el index 58135a1..1a9cf55 100644 --- a/lisp/nntp.el +++ b/lisp/nntp.el @@ -258,6 +258,9 @@ to insert Cancel-Lock headers.") This is usually slower, but on misconfigured servers that don't update their active files often, this can help.") +(defvoo nntp-auth t + "If nil, never try to authenticate NNTP.") + ;;; Internal variables. (defvoo nntp-retrieval-in-progress nil) @@ -1191,11 +1194,12 @@ If SEND-IF-FORCE, only send authinfo to the server if the (let* ((list (netrc-parse nntp-authinfo-file)) (alist (netrc-machine list nntp-address "nntp")) (auth-info - (nth 0 (auth-source-search - :max 1 - :host (list nntp-address (nnoo-current-server 'nntp)) - :port `("119" "nntp" ,(format "%s" nntp-port-number) - "563" "nntps" "snews")))) + (when nntp-auth + (nth 0 (auth-source-search + :max 1 + :host (list nntp-address (nnoo-current-server 'nntp)) + :port `("119" "nntp" ,(format "%s" nntp-port-number) + "563" "nntps" "snews"))))) (auth-user (plist-get auth-info :user)) (auth-force (plist-get auth-info :force)) (auth-passwd (plist-get auth-info :secret)) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english --=-=-=--