From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81477 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nntp-send-authinfo doesn't look at nntp-port-number Date: Fri, 24 Feb 2012 08:11:14 +0900 Organization: Emacsen advocacy group Message-ID: References: <87ty2iqcjv.fsf@Gmail.com> <871uplww7d.fsf@Gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1330038751 11828 80.91.229.3 (23 Feb 2012 23:12:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2012 23:12:31 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29757@lists.math.uh.edu Fri Feb 24 00:12:30 2012 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S0hpu-0008At-Ey for ding-account@gmane.org; Fri, 24 Feb 2012 00:12:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1S0hp6-0007IC-C8; Thu, 23 Feb 2012 17:11:40 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1S0hp5-0007I2-5f for ding@lists.math.uh.edu; Thu, 23 Feb 2012 17:11:39 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1S0hp4-0007dp-0i for ding@lists.math.uh.edu; Thu, 23 Feb 2012 17:11:38 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S0hp2-0004AC-9A for ding@gnus.org; Fri, 24 Feb 2012 00:11:36 +0100 Original-Received: from localhost ([127.0.0.1]:37205) by orlando.hostforweb.net with smtp (Exim 4.69) (envelope-from ) id 1S0hou-00074A-O9 for ding@gnus.org; Thu, 23 Feb 2012 17:11:29 -0600 X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130004 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.4) Emacs/24.0.93 (i686-pc-cygwin) Cancel-Lock: sha1:JMDU3BqCBoFGVZRiMCEj+POOcrw= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81477 Archived-At: --=-=-= XeCycle wrote: > Katsumi Yamaoka writes: > [...] >> Maybe the following patch will make it work. Er, but I don't >> know whether it's right to add "nntps" and "snews"... >> --- nntp.el~ 2012-02-15 09:22:23.734375000 +0000 >> +++ nntp.el 2012-02-23 11:02:16.234375000 +0000 >> @@ -1197,7 +1197,8 @@ [...] >> - :port '("119" "nntp")))) >> + :port '("119" "nntp" >> + "563" "nntps" "snews")))) [...] > Thanks for this, but is there no way to check the defined port > number? That would be more robust. Ok. I've added the next one to No Gnus, Ma Gnus, and Emacs 24. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- nntp.el~ 2012-02-15 09:22:23.734375000 +0000 +++ nntp.el 2012-02-23 23:06:23.984375000 +0000 @@ -1196,6 +1196,9 @@ (auth-info - (nth 0 (auth-source-search :max 1 - :host (list nntp-address - (nnoo-current-server 'nntp)) - :port '("119" "nntp")))) + (nth 0 (auth-source-search + :max 1 + :host (list nntp-address + (nnoo-current-server 'nntp)) + :port (or (cdr (assoc (format "%s" nntp-port-number) + '(("563" . ("563" "nntps" "snews"))))) + '("119" "nntp"))))) (auth-user (plist-get auth-info :user)) --=-=-=--