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