From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: Re: nntp over rlogin-and-netcat Date: Tue, 12 Dec 2006 15:05:22 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165903563 17233 80.91.229.10 (12 Dec 2006 06:06:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Dec 2006 06:06:03 +0000 (UTC) Cc: bugs@gnus.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 12 07:06:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gu0m4-0006tk-K8 for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 07:05:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gu0m3-0003df-W3 for ged-emacs-devel@m.gmane.org; Tue, 12 Dec 2006 01:05:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gu0lk-0003be-4S for emacs-devel@gnu.org; Tue, 12 Dec 2006 01:05:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gu0lg-0003Yr-R5 for emacs-devel@gnu.org; Tue, 12 Dec 2006 01:05:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gu0lg-0003Yg-NR for emacs-devel@gnu.org; Tue, 12 Dec 2006 01:05:32 -0500 Original-Received: from [216.246.45.90] (helo=orlando.hostforweb.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gu0lg-0006kU-9p for emacs-devel@gnu.org; Tue, 12 Dec 2006 01:05:32 -0500 Original-Received: from [66.225.201.151] (port=42929 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.52) id 1Gu0le-00010m-M7; Tue, 12 Dec 2006 00:05:31 -0600 Original-To: Stefan Monnier X-Hashcash: 1:20:061212:monnier@iro.umontreal.ca::qWgZ5d0PHoOvGjhb:00000000000000000000000000000000000007Rvj X-Hashcash: 1:20:061212:emacs-devel@gnu.org::OMHwUyAsYvnlCQp5:0000000000000000000000000000000000000000001Ebv X-Hashcash: 1:20:061212:bugs@gnus.org::rqgwsNOCNQUHtQ80:00002Hdo 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.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:KSP3Am19h+TuVheZy0DeYg0pPKw= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:63609 Archived-At: >>>>> In Stefan Monnier wrote: > I recently started to access a news server via an SSH tunnel. > I first tried to do it with nntp-open-via-rlogin-and-telnet, but it > couldn't post new messages (the problem seems to be that the server expects > a CR-LF-.-CR-LF byte-sequence, which didn't work when going through > tty code (which seems to turn all CR into LFs) and then through telnet > (which, did something very funny with LF)). Hmm, now I use nntp-open-via-rlogin-and-telnet and have no problem. The server spec for Gmane is: (nntp "gmane" (nntp-address "news.gmane.org") (nntp-end-of-line "\n") (nntp-open-connection-function nntp-open-via-rlogin-and-telnet) (nntp-via-address "jpl.org") (nntp-via-rlogin-command "ssh") (nntp-via-rlogin-command-switches ("-C" "-t" "-e" "none"))) > So I wrote the function nntp-open-via-rlogin-and-netcat below, which seems > much saner: rather than use telnet and then try to undo what telnet does, > using netcat gives us directly what we want. I wrote just the same function in 12 Apr 2004 in the Gnus CVS trunk (a.k.a. No Gnus).;-) Though there is no function such as `nntp-service-to-port'. If you want to install it in Emacs, I think a better way to make it easy to synch Gnus v5.11 and No Gnus is to install the No Gnus version in which you add them in Emacs. Regards,