From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/81478 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: nntp-send-authinfo doesn't look at nntp-port-number Date: Fri, 24 Feb 2012 10:42:26 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87pqd4utjx.fsf@lifelogs.com> References: <87ty2iqcjv.fsf@Gmail.com> <871uplww7d.fsf@Gmail.com> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330098266 28075 80.91.229.3 (24 Feb 2012 15:44:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2012 15:44:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M29758@lists.math.uh.edu Fri Feb 24 16:44:23 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 1S0xJm-0006y5-Cz for ding-account@gmane.org; Fri, 24 Feb 2012 16:44:22 +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 1S0xIA-0003Xb-KV; Fri, 24 Feb 2012 09:42:42 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1S0xI9-0003XS-DP for ding@lists.math.uh.edu; Fri, 24 Feb 2012 09:42:41 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1S0xI7-000175-Pi for ding@lists.math.uh.edu; Fri, 24 Feb 2012 09:42:41 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1S0xI5-0004Ob-MJ for ding@gnus.org; Fri, 24 Feb 2012 16:42:37 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S0xI5-0005dV-43 for ding@gnus.org; Fri, 24 Feb 2012 16:42:37 +0100 Original-Received: from c-76-28-40-19.hsd1.vt.comcast.net ([76.28.40.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Feb 2012 16:42:37 +0100 Original-Received: from tzz by c-76-28-40-19.hsd1.vt.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Feb 2012 16:42:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 16 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-76-28-40-19.hsd1.vt.comcast.net 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" Mail-Copies-To: never User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:g5ycAj10jO81hFARozsYvmU6JvE= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:81478 Archived-At: On Fri, 24 Feb 2012 08:11:14 +0900 Katsumi Yamaoka wrote: KY> + :port (or (cdr (assoc (format "%s" nntp-port-number) KY> + '(("563" . ("563" "nntps" "snews"))))) KY> + '("119" "nntp"))))) Sorry I didn't reply sooner... this could be simply `("119" "nntp" ,(format "%s" nntp-port-number) "563" "nntps" "snews") The order doesn't matter. It makes sense to search for all these possible matches in the authinfo/netrc file at once, with the assumption that it's very unlikely a user will use both port 119 and 563 on a NNTP server, and with different passwords. WDYT? Ted