home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.gnus
- Path: sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!piccolo.cit.cornell.edu!ns14
- From: ns14@crux3.crux2.cit.cornell.edu (Nathan Otto Siemers)
- Subject: Re: Read on one NNTP host, post to another
- In-Reply-To: ns14@crux2.crux2.cit.cornell.edu's message of 12 Dec 92 16:31:38
- Message-ID: <NS14.92Dec12223206@crux3.crux2.cit.cornell.edu>
- Sender: news@piccolo.cit.cornell.edu (USENET News System)
- Nntp-Posting-Host: crux3.cit.cornell.edu
- Organization: Department of Chemistry, Cornell Univ.
- References: <CLOOS.92Dec5023816@theory.TC.Cornell.EDU>
- <CLOOS.92Dec12024136@theory.TC.Cornell.EDU>
- <NS14.92Dec12163138@crux2.crux2.cit.cornell.edu>
- Distribution: gnu
- Date: 12 Dec 92 22:32:06
- Lines: 50
-
- >>>>> On 12 Dec 92 16:31:38, ns14@crux2.crux2.cit.cornell.edu (Nathan Otto Siemers) said:
-
-
- James> This begs the question: is it possible to be reading news from
- James> two different nntp servers in two different windows at the same
- James> time? It seems that this would be the simplest way of handling
- James> the situation. Not that this way is all that simple, from what
- James> I see.
-
-
- Nathan> This is my hack (with help) to post to a different nntp host.
- Nathan> my situation is not general as I CAN post to the default nntp
- Nathan> server on my system via inews, but it is very very slow under
- Nathan> gnus so I read from another. I am not a programmer, and the
- Nathan> grep -v just removes some weird error that puts two of my
- Nathan> sigs in. you'll see it at the end of my post. This should
- Nathan> at least help. you should be able to put whatever you want
- Nathan> in to the shell command.
-
-
- I must have been completely brain dead when I posted last
- night. Sorry. Try this.
-
-
- (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)
- " sed s/piccolo/piccolo/g \
- nil 1)
- )
-
-
-
- actually, the problem was with a long line that did not survive. I
- hope this works; you may have to remove the backslash in the sed
- line and add the next line to it.
-
- nathan
-
- --
- --
- / | / /__| / /---/ /__| / | / nathan@chemres.tn.cornell.edu
-