From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33971 Path: main.gmane.org!not-for-mail From: Christoph Conrad Newsgroups: gmane.emacs.gnus.general Subject: Re: `open-network-stream' in `nntp-open-network-stream': strange behaviour Date: 01 Jan 2001 23:51:00 +0100 Organization: Gnus Information Center Sender: owner-ding@hpc.uh.edu Message-ID: References: <761yumc48e.fsf@newjersey.ppllc.com> Reply-To: Christoph Conrad NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169983 27960 80.91.224.250 (21 Oct 2002 03:13:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:13:03 +0000 (UTC) Cc: colman@ppllc.com Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 5BA51D049D for ; Mon, 1 Jan 2001 17:52:04 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id QAB18521; Mon, 1 Jan 2001 16:51:38 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 01 Jan 2001 16:51:00 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id QAA02780 for ; Mon, 1 Jan 2001 16:50:50 -0600 (CST) Original-Received: from quimby.gnus.org (quimby.gnus.org [195.204.10.139]) by mailhost.sclp.com (Postfix) with ESMTP id CD2E9D049D for ; Mon, 1 Jan 2001 17:51:11 -0500 (EST) Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id XAA30363 for ding@gnus.org; Mon, 1 Jan 2001 23:51:33 +0100 (CET) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-NNTP-Posting-Host: b224c.pppool.de Original-X-Trace: quimby.gnus.org 978389492 3514 213.7.34.76 (1 Jan 2001 22:51:32 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 1 Jan 2001 22:51:32 GMT X-Public-Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0x1B488DEA User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 36 Xref: main.gmane.org gmane.emacs.gnus.general:33971 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33971 Hi Jake, you wrote: > How are you using this fix? Are you replacing gnus source? I see > exactly the same bug when accessing my imap server. I included the two pieces of code into .emacs.gnus.el. `nntp-open-network-stream' replaces the (simple) original definition from "nntp.el": ;; original (defun nntp-open-network-stream (buffer) (open-network-stream "nntpd" buffer nntp-address nntp-port-number)) I see in your headers: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) If you don't mind about a lot of possibly open " *nntpd" buffers (was fixed a few days ago in the CVS gnus; you don't see the buffers), you can also use `cc-resolve-address' with (defadvice open-network-stream ( before nntp-open-network-stream-resolve act ) (when (not (string-match "[0-9.]+" (ad-get-arg 2))) (ad-set-arg 2 (cc-resolve-address nntp-address)))) instead of replacing `nntp-open-network-stream'. This a little bit cleaner. Please let me know if it solves your problem. Best regards, cu, -cc- -- => GNU Emacs Webring @ <= Look Ma, this man can twist his fingers as if they were made of rubber, isn't that amazing? -- Not really, he's been using emacs for years...!