[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nntp over rlogin-and-netcat
From: |
Katsumi Yamaoka |
Subject: |
Re: nntp over rlogin-and-netcat |
Date: |
Tue, 12 Dec 2006 15:05:22 +0900 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) |
>>>>> In <address@hidden> 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,