home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms
- Subject: Re: Apending a file at the end of mail.
- Date: 21 Dec 1992 08:24:35 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 43
- Distribution: world
- Message-ID: <1h3v03INNn2j@gap.caltech.edu>
- References: <01GSK4HGLSY800036I@MSUS1.MSUS.EDU>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <01GSK4HGLSY800036I@MSUS1.MSUS.EDU>, TS117%BSU.DECNET@MSUS1.BITNET (TANDI SUNARTO) writes:
- >Ehud,
- >
- >Since I am a new user on VAX system, could you please elaborate your
- >explanation on how to append a file at the end of mail, for example :
- >tell me how to create an initiliazation file, and other stuff.
-
- OK, when people start confusing me with Ehud, I know I've gone over the line
- :-)
-
- First: From within MAIL, issue the command:
- MAIL> SET EDITOR TPU
- then, create a file which contains the text:
- PROCEDURE SIGNATURE
- LOCAL OUTFILE, OLDPOS;
- ON_ERROR
- POSITION(OLDPOS);
- ENDON_ERROR;
-
- OUTFILE := GET_INFO(COMMAND_LINE, "OUTPUT_FILE");
- OLDPOS := MARK(NONE);
- IF (SUBSTR(OUTFILE, 1, 17) = "SYS$SCRATCH:MAIL_") AND
- (SUBSTR(OUTFILE, 26, 9) = "_SEND.TMP") AND
- (LENGTH(OUTFILE) = 34) THEN
- POSITION(BUFFER_END);
- READ_FILE("SYS$LOGIN:SIGNATURE.");
- POSITION(OLDPOS);
- ENDIF;
- POSITION(OLDPOS);
- ENDPROCEDURE;
- SIGNATURE;
-
- Then, define a logical name, TPU$COMMAND, which points to this file. I've got
- another procedure that puts ">" in front of every line of included text.
- E-mail me if you want it.
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-