home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21858 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.3 KB

  1. Path: sparky!uunet!comp.vuw.ac.nz!zl2tnm!toyunix!don
  2. Newsgroups: comp.os.vms
  3. Subject: Re: TPU mail quoting procedure available?
  4. Message-ID: <16592023@zl2tnm.gen.nz>
  5. From: don@zl2tnm.gen.nz (Don Stokes)
  6. Date: 24 Jan 93 08:29:09 GMT
  7. Sender: news@zl2tnm.gen.nz (GNEWS Version 2.0 news poster.)
  8. References: <1jtc4kINNmu8@usenet.INS.CWRU.Edu>
  9. Distribution: world
  10. Organization: The Wolery
  11. Lines: 44
  12.  
  13. cg656@cleveland.Freenet.Edu (Michael O. Bartz) writes:
  14. > I am currently using a TPU file that has the ability to quote
  15. > a message when replied with REPLY/EXTRACT in mail.  It's something that
  16. > I whipped up that simply looks until it finds a blank line and
  17. > then it deletes everything above it.  Then it quotes the rest of
  18. > the message.  Simple!  However not so simple since mail is in this form:
  19. >       non-local                            local mail
  20. > [vax 4 line header]             |     [vax 4 line header]
  21. >      S P A C E                  |         S P A C E
  22. > [the rest of the net-headers]   |     [body of message]
  23. >      S P A C E                  |
  24. > [body of message]               |
  25. > So the problem is that the TPU procedure can't tell the difference
  26. > between net-mail headers and the body of the message.  If I call the
  27. > procedure twice, it will delete the first paragraph of local mail.
  28.  
  29. Well, obviously, you're going to need more smarts than that.  What I do
  30. (in EDT) is to go down _two_ paragraphs, search backward for a "From:"
  31. (be it a VMS header or a net header --  most mailers duplicate the From:
  32. line in the "in-body" headers), go to the end of the paragraph and delete
  33. everything from the beginning of the buffer to the current position.  If
  34. it's not a network message, you may lose the first paragraph if it contains
  35. a "From:".  Them's the breaks.
  36.  
  37. In EDT:
  38.  
  39. change;br ((+2par) -"From:" +par dbr) ex
  40.  
  41. For completeness, my EDT "remove header, quote & sign" macro goes:
  42.  
  43. change;br ((+2par) (-"From:" +par dbr) br 32767(i>^Z ll -v) ^M sel ^M^M) ex
  44. include SYS$LOGIN:SIG.TXT
  45. change; -sr ex
  46.  
  47. You will of course need to write a longer procedure for TPU.
  48.  
  49. --
  50. Don Stokes, ZL2TNM (DS555)                        don@zl2tnm.gen.nz (home)
  51. Network Manager, Computing Services Centre            don@vuw.ac.nz (work)
  52. Victoria University of Wellington, New Zealand              +64-4-495-5052
  53.