home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.gnus
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!att-out!cbnewsh!lzbuoy!billc
- From: billc@pegasus.ATT.COM (Bill Carpenter)
- Subject: Re: Posting via inews-program
- Organization: AT&T Bell Laboratories
- Date: Sat, 7 Nov 1992 00:12:38 GMT
- Message-ID: <1992Nov7.001238.12353@cbnewsh.cb.att.com>
- In-Reply-To: mahue@linguistik.uni-erlangen.de's message of Fri, 6 Nov 1992 15:30:11 GMT
- References: <MAHUE.92Nov6163011@uranus.linguistik.uni-erlangen.de>
- Sender: news@cbnewsh.cb.att.com (NetNews Administrator)
- Nntp-Posting-Host: pegasus
- Lines: 28
-
- mahue> Because our nntp-news-server only accepts articles posted with
- mahue> a special version of the inews-program (our news-admin says it
- mahue> has additional security-checks ???) I'd like to tell GNUS to
- mahue> pass the article to this program instead of using its own
- mahue> nntp-connection.
-
- I had to do the same thing once. Here's what I did by overlaying a
- standard GNUS function.
-
- (defun nntp-request-post ()
- "Post a new news in current buffer."
- ; (if (nntp-send-command "^[23].*\r$" "POST")
- ; (progn
- ; (nntp-encode-text)
- ; (nntp-send-region-to-server (point-min) (point-max))
- ; ;; 1.2a NNTP's post command is buggy. "^M" (\r) is not
- ; ;; appended to end of the status message.
- ; (nntp-wait-for-response "^[23].*$")
-
- (shell-command-on-region (point-min) (point-max)
- "rsh xyz.foo.com -l whoever /usr/bin/inews"
- nil 1)
- )
-
- --
- Bill William_J_Carpenter@ATT.COM or
- (908) 576-2932 attmail!bill or att!pegasus!billc
- AT&T Bell Labs / AT&T EasyLink Services LZ 3C-207
-