From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/29962 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: .authinfo and mail sources Date: 21 Apr 2000 01:48:25 -0400 (EDT) Organization: Emacsen advocacy group Sender: owner-ding@hpc.uh.edu Message-ID: References: <87k8jka1rd.fsf@isil.localdomain> <87itz3c46l.fsf@isil.localdomain> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035166555 5787 80.91.224.250 (21 Oct 2002 02:15:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:15:55 +0000 (UTC) Cc: bugs@gnus.org (The Gnus Bugfixing Girls + Boys) Return-Path: Original-Received: from lisa.math.uh.edu (lisa.math.uh.edu [129.7.128.49]) by mailhost.sclp.com (Postfix) with ESMTP id 15103D051E for ; Fri, 21 Apr 2000 01:49:35 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by lisa.math.uh.edu (8.9.1/8.9.1) with ESMTP id AAB23933; Fri, 21 Apr 2000 00:49:25 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 21 Apr 2000 00:48:35 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id AAA21818 for ; Fri, 21 Apr 2000 00:48:22 -0500 (CDT) Original-Received: from jpl.org (mars.web-hosting.com [209.40.104.5]) by mailhost.sclp.com (Postfix) with ESMTP id 2DC19D051E; Fri, 21 Apr 2000 01:48:31 -0400 (EDT) Original-Received: (from yamaoka@localhost) by jpl.org (8.9.3/8.9.3) id BAA02925; Fri, 21 Apr 2000 01:48:15 -0400 (EDT) Original-To: ding@gnus.org 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.0805 (Gnus v5.8.5) Emacs/20.6 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:29962 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:29962 --=-=-= >>>>> In >>>>> Lars Magne Ingebrigtsen wrote: Lars> `gnus-netrc-machine' now takes a port parameter, and nnimap Lars> should supply an "imap" parameter for it to work. (It defaults Lars> to "nntp" as the port number.) Still, it doesn't work. (gnus-netrc-machine (gnus-parse-netrc "~/.netrc") "quimby.gnus.org") => Signaling: (wrong-number-of-arguments #'gnus-netrc-get 1) It may be fixed as follows. 2000-04-21 05:22:18 Katsumi Yamaoka * gnus-util.el (gnus-netrc-machine): Didn't work. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gnus-util.el.diff --- gnus-util.el~ Thu Apr 20 23:47:32 2000 +++ gnus-util.el Fri Apr 21 05:22:18 2000 @@ -868,13 +868,12 @@ (when (assoc "default" (car rest)) (push (car rest) result)) (pop rest))) - (setq result (nreverse result)) - (if (null result) - nil + (when result + (setq result (nreverse result)) (while (and result - (not (equalp port (or (gnus-netrc-get result) "nntp")))) + (not (equal port (gnus-netrc-get (car result) "port")))) (pop result)) - result))) + (car result)))) (defun gnus-netrc-get (alist type) "Return the value of token TYPE from ALIST." --=-=-= -- Katsumi Yamaoka --=-=-=--