From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/24736 Path: main.gmane.org!not-for-mail From: Max Froumentin Newsgroups: gmane.emacs.gnus.general Subject: Re: reading news over telnet Date: 19 Aug 1999 16:07:48 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162250 10353 80.91.224.250 (21 Oct 2002 01:04:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:04:10 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA07194 for ; Thu, 19 Aug 1999 11:20:13 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.3/8.9.3) with ESMTP id KAB23092; Thu, 19 Aug 1999 10:12:28 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 19 Aug 1999 10:10:23 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA01249 for ; Thu, 19 Aug 1999 10:09:54 -0500 (CDT) Original-Received: from wallace.maths.bath.ac.uk (exim@wallace.maths.bath.ac.uk [138.38.100.104]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id LAA07006 for ; Thu, 19 Aug 1999 11:08:02 -0400 (EDT) Original-Received: from [138.38.99.49] (helo=scratchy.maths.bath.ac.uk) by wallace.maths.bath.ac.uk with esmtp (Exim 2.12 #1) id 11HSjq-000280-00 for ding@gnus.org; Thu, 19 Aug 1999 15:00:18 +0100 Original-Received: from masmef by scratchy.maths.bath.ac.uk with local (Exim 2.12 #2) id 11HTnA-0002Gs-00 for ding@gnus.org; Thu, 19 Aug 1999 16:07:48 +0100 Original-To: The Gnus Mailing List In-Reply-To: dsg@mitre.org's message of "17 Aug 1999 16:37:38 -0400" Original-Lines: 43 User-Agent: Gnus/5.070095 (Pterodactyl Gnus v0.95) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:24736 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:24736 ...is possible, even though I've had to modify the gnus source (commented out 1 line): AFAIK Whatever controls the traffic between the subnet here and the outside world filters out NNTP as well as RLOGIN connections, but not TELNET. This is why using (setq nntp-open-connection-function nntp-open-rlogin) doesn't seem to work. nntp-open-telnet didn't work either but for a different reason: just after reading the user password, nntp-open-telnet erases the terminal buffer and then waits for a prompt: (process-send-string proc (concat (or nntp-telnet-passwd (setq nntp-telnet-passwd (mail-source-read-passwd "Password: "))) "\n")) (erase-buffer) (nntp-wait-for-string nntp-telnet-shell-prompt) What happens in my case is that the prompt is always written in the buffer *before* the latter is erased. Thus nntp-wait-for-string hangs. Everything seems to work when I comment out (erase-buffer). My group parameters are now: (nntp "firewall" (nntp-address "mary.bath.ac.uk") (nntp-open-connection-function nntp-open-telnet) (nntp-end-of-line "\n") (nntp-telnet-parameters ("exec" "telnet" "-8" "${NNTPSERVER:=news.freshmeat.net}" "nntp"))) I suppose I could send a patch or something to have this corrected in the next gnus release, but with my limited knowledge of gnus/emacs/elisp I'd rather be cautious and avoid damaging the nntp backend... Maybe someone who knows more than me will verify this change and approve it. Max.