Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: bugs@gnus.org (The Gnus Bugfixing Girls + Boys)
Subject: Re: .authinfo and mail sources
Date: 21 Apr 2000 01:48:25 -0400 (EDT)	[thread overview]
Message-ID: <yosuk8hsra5i.fsf@jpl.org> (raw)
In-Reply-To: <m3bt3434hy.fsf@quimbies.gnus.org>

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

>>>>> In <m3bt3434hy.fsf@quimbies.gnus.org> 
>>>>>	Lars Magne Ingebrigtsen <larsi@gnus.org> 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  <yamaoka@jpl.org>

        * gnus-util.el (gnus-netrc-machine): Didn't work.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-util.el.diff --]
[-- Type: text/x-patch, Size: 604 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 38 bytes --]

-- 
Katsumi Yamaoka <yamaoka@jpl.org>

  reply	other threads:[~2000-04-21  5:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-03  8:36 John Prevost
2000-03-03 13:27 ` Simon Josefsson
2000-03-03 18:13   ` John Prevost
2000-03-04 19:13     ` Simon Josefsson
2000-03-06 15:14       ` David S. Goldberg
2000-04-20 20:24       ` Lars Magne Ingebrigtsen
2000-04-21  5:48         ` Katsumi Yamaoka [this message]
2000-03-03 18:32   ` Alan Shutko
2000-03-04 16:35     ` Kai Großjohann
2000-03-06 18:49   ` Toby Speight

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yosuk8hsra5i.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=bugs@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).