MAIL EXTRACT — MicroVMS 4.5B
Places a copy of the current message into a sequential file. If you
want to copy a mail message to a folder in an ISAM mail file, use
one of the following commands:
o COPY
o FILE
o MOVE
Format:
EXTRACT file-spec
Additional information available:
Parameters
file-spec Specifies the name of the output file to which the message is copied. The default file type is TXT.
Qualifiers
Additional information available:
/APPEND
/APPEND Adds the selected message to the end of the specified file. If the file does not exist, it is created. When you do not specify /APPEND, MAIL creates a new sequential file.
/ALL
/ALL Copies all the currently selected messages to the specified file. Each message will be separated by a form feed.
/NOHEADER
/NOHEADER Removes the header information (To: From: Subject:) from the mail message.
/MAIL Specifies that the output file be a sequential mail file with a default file type of MAI, and a protection code of (S:RW,O:RW,G,W). By default, the device and directory will match those of your mail file directory. Like /APPEND, /MAIL adds the selected message to the end of the specified file, and will create the file if it does not exist.
Examples
1.
MAIL> DIRECTORY
MAIL
# From Date Subject
.
.
.
5 JOAN 12-MAR-86 Spelling Tests
.
.
.
MAIL> 5
MAIL> EXTRACT GRAMMAR
MAIL> EXIT
$ DIRECTORY
.
.
.
GRAMMAR.TXT;1
.
.
.
This example shows how to place a copy of a mail message in a
sequential file named GRAMMAR.TXT.
2.
MAIL> EXTRACT/ALL/NOHEADER (1)
_File: OUTER.DAT
%MAIL-I-CREATED, DISK$MEGAWORK:[CROWN]OUTER.DAT;1 created
MAIL>
This example shows how to place a copy of all the messages in the
currently selected folder into a sequential file called OUTER.DAT.
The /NOHEADER qualifier prevents the header information from being
copied.