Function: nntp-open-via-rlogin-and-netcat

nntp-open-via-rlogin-and-netcat is a byte-compiled function defined in nntp.el.gz.

Signature

(nntp-open-via-rlogin-and-netcat BUFFER)

Documentation

Open a connection to an nntp server through an intermediate host.

First rlogin to the remote host, and then connect to the real news server from there using the netcat command.

Please refer to the following variables to customize the connection:
- nntp-pre-command,
- nntp-via-rlogin-command,
- nntp-via-rlogin-command-switches,
- nntp-via-user-name,
- nntp-via-address,
- nntp-netcat-command,
- nntp-netcat-switches,
- nntp-address,
- nntp-port-number.

Source Code

;; Defined in /usr/src/emacs/lisp/gnus/nntp.el.gz
(defun nntp-open-via-rlogin-and-netcat (buffer)
  "Open a connection to an nntp server through an intermediate host.
First rlogin to the remote host, and then connect to the real news
server from there using the netcat command.

Please refer to the following variables to customize the connection:
- `nntp-pre-command',
- `nntp-via-rlogin-command',
- `nntp-via-rlogin-command-switches',
- `nntp-via-user-name',
- `nntp-via-address',
- `nntp-netcat-command',
- `nntp-netcat-switches',
- `nntp-address',
- `nntp-port-number'."
  (let ((command `(,@(when nntp-pre-command
		       (list nntp-pre-command))
		   ,nntp-via-rlogin-command
		   ,@nntp-via-rlogin-command-switches
		   ,@(when nntp-via-user-name
		       (list "-l" nntp-via-user-name))
		   ,nntp-via-address
		   ,nntp-netcat-command
		   ,@nntp-netcat-switches
		   ,nntp-address
		   ,(nntp-service-to-port nntp-port-number))))
    ;; A non-nil connection type results in mightily odd behavior where
    ;; (process-send-string proc "\^M") ends up sending a "\n" to the
    ;; ssh process.  --Stef
    ;; Also a nil connection allow ssh-askpass to work under X11.
    (let ((process-connection-type nil))
      (apply #'start-process "nntpd" buffer command))))