Function: url-news-open-host
url-news-open-host is a byte-compiled function defined in
url-news.el.gz.
Signature
(url-news-open-host HOST PORT USER PASS)
Source Code
;; Defined in /usr/src/emacs/lisp/url/url-news.el.gz
(defun url-news-open-host (host port user pass)
(if (fboundp 'nnheader-init-server-buffer)
(nnheader-init-server-buffer))
(nntp-open-server host (list port))
(if (and user pass)
(progn
(nntp-send-command "^.*\r?\n" "AUTHINFO USER" user)
(nntp-send-command "^.*\r?\n" "AUTHINFO PASS" pass)
(if (not (nntp-server-opened host))
(display-warning 'url (format "NNTP authentication to `%s' as `%s' failed"
host user))))))