From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31655 Path: main.gmane.org!not-for-mail From: Rod Whitby Newsgroups: gmane.emacs.gnus.general Subject: nntp telnet connection with remote command echoes Date: 06 Jul 2000 09:02:19 +0930 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035168041 15321 80.91.224.250 (21 Oct 2002 02:40:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:40:41 +0000 (UTC) Return-Path: Original-Received: from fisher.math.uh.edu (fisher.math.uh.edu [129.7.128.35]) by mailhost.sclp.com (Postfix) with ESMTP id 62B44D0520 for ; Wed, 5 Jul 2000 19:50:37 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by fisher.math.uh.edu (8.9.1/8.9.1) with ESMTP id SAC11533; Wed, 5 Jul 2000 18:50:15 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 05 Jul 2000 18:49:27 -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 SAA05535 for ; Wed, 5 Jul 2000 18:49:16 -0500 (CDT) Original-Received: from motgate.mot.com (motgate.mot.com [129.188.136.100]) by mailhost.sclp.com (Postfix) with ESMTP id 80C9BD0520 for ; Wed, 5 Jul 2000 19:49:50 -0400 (EDT) Original-Received: [from pobox3.mot.com (pobox3.mot.com [10.64.251.242]) by motgate.mot.com (motgate 2.1) with ESMTP id QAA02871 for ; Wed, 5 Jul 2000 16:49:48 -0700 (MST)] Original-Received: [from fraser.asc.corp.mot.com (fraser.asc.corp.mot.com [217.1.104.8]) by pobox3.mot.com (MOT-pobox3 2.0) with ESMTP id QAA29021 for ; Wed, 5 Jul 2000 16:49:43 -0700 (MST)] Original-Received: from a11375-rw.asc.corp.mot.com.asc.corp.mot.com (a11375-rw [217.1.106.149]) by fraser.asc.corp.mot.com (8.8.7/8.8.7) with SMTP id JAA02284 for ; Thu, 6 Jul 2000 09:19:41 +0930 (CST) Original-To: ding@gnus.org Original-Lines: 38 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31655 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31655 I'd like to make some changes to nntp.el to handle remote telnet programs that echo commands. I'm looking for advice on whether there is another way to solve the problem instead of changing nntp.el Here's the background: I'm using Gnus to read news from behind a telnet firewall. The firewall has a very restricted version of telnet. It does not understand "mode" commands. So I modified nntp-open-telnet (well, actually I copied it and changed the name before modifying it) to look for the correct login and password prompts (the defaults in nntp-open-telnet don't match this weird firewall system) and to not try and send the mode character command (as the firewall telnet won't accept it - I presume the intent of changing the local escape character to ^X is to ensure that the "mode character" command goes to the gateway telnet program instead of the local telnet program). When I connect to the remote system, all the NNTP commands are echoed (starting with MODE READER). So I've created a new defvoo variable "nntp-telnet-remote-echoes", and modified nntp.el to rip out the echoed commands from the buffer. Are my assumptions about the "mode character" command going to the gateway telnet program (not the local telnet program) correct ? Is there a better way to solve this problem ? Would the maintainers of nntp.el accept a patch that fixes this problem (the assumption being that I've written it such that it works the same as it does currently if the nntp-telnet-remote-echoes variable is nil) ? -- -- Rod Whitby, Snr Staff Engr, Electronic Design Automation -- -- Motorola Australia Software Centre - Adelaide, Australia -- -- Phone: +61 8 8203 3526, Fax: +61 8 8203 3501, --