home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / gnus / 1388 < prev    next >
Encoding:
Text File  |  1992-12-12  |  2.4 KB  |  67 lines

  1. Newsgroups: gnu.emacs.gnus
  2. Path: sparky!uunet!newsstand.cit.cornell.edu!piccolo.cit.cornell.edu!piccolo.cit.cornell.edu!ns14
  3. From: ns14@crux3.crux2.cit.cornell.edu (Nathan Otto Siemers)
  4. Subject: Re: Read on one NNTP host, post to another
  5. In-Reply-To: ns14@crux2.crux2.cit.cornell.edu's message of 12 Dec 92 16:31:38
  6. Message-ID: <NS14.92Dec12223206@crux3.crux2.cit.cornell.edu>
  7. Sender: news@piccolo.cit.cornell.edu (USENET News System)
  8. Nntp-Posting-Host: crux3.cit.cornell.edu
  9. Organization: Department of Chemistry, Cornell Univ.
  10. References: <CLOOS.92Dec5023816@theory.TC.Cornell.EDU>
  11.     <CLOOS.92Dec12024136@theory.TC.Cornell.EDU>
  12.     <NS14.92Dec12163138@crux2.crux2.cit.cornell.edu>
  13. Distribution: gnu
  14. Date: 12 Dec 92 22:32:06
  15. Lines: 50
  16.  
  17. >>>>> On 12 Dec 92 16:31:38, ns14@crux2.crux2.cit.cornell.edu (Nathan Otto Siemers) said:
  18.  
  19.  
  20. James> This begs the question: is it possible to be reading news from
  21. James> two different nntp servers in two different windows at the same
  22. James> time?  It seems that this would be the simplest way of handling
  23. James> the situation.  Not that this way is all that simple, from what
  24. James> I see.
  25.  
  26.  
  27.  Nathan> This is my hack (with help) to post to a different nntp host.
  28.  Nathan> my situation is not general as I CAN post to the default nntp
  29.  Nathan> server on my system via inews, but it is very very slow under
  30.  Nathan> gnus so I read from another.  I am not a programmer, and the
  31.  Nathan> grep -v just removes some weird error that puts two of my
  32.  Nathan> sigs in.  you'll see it at the end of my post.  This should
  33.  Nathan> at least help.  you should be able to put whatever you want
  34.  Nathan> in to the shell command.
  35.  
  36.  
  37.     I must have been completely brain dead when I posted last
  38. night.  Sorry.  Try this.
  39.  
  40.  
  41. (defun nntp-request-post ()
  42.   "Post a new news in current buffer."
  43. ;  (if (nntp-send-command "^[23].*\r$" "POST")
  44. ;      (progn
  45. ;    (nntp-encode-text)
  46. ;    (nntp-send-region-to-server (point-min) (point-max))
  47. ;    ;; 1.2a NNTP's post command is buggy. "^M" (\r) is not
  48. ;    ;;  appended to end of the status message.
  49. ;    (nntp-wait-for-response "^[23].*$")
  50.  
  51.   (shell-command-on-region (point-min) (point-max)
  52.                " sed  s/piccolo/piccolo/g \
  53.                nil 1)
  54.     )
  55.  
  56.  
  57.  
  58. actually, the problem was with a long line that did not survive.  I
  59. hope this works;   you may have to remove the backslash in the sed
  60. line and add the next line to it.
  61.  
  62. nathan
  63.  
  64. --
  65. --
  66. /  | / /__|  /  /---/ /__| /  | /    nathan@chemres.tn.cornell.edu
  67.