MAIL COPY — VMS 5.2
Copies a message to another folder without deleting it from the
current folder. If the specified folder does not exist, you
are asked if you want to create it.
If you want to copy a message to a sequential file (outside of MAIL)
instead of to a mail file, use the EXTRACT command.
If you enter the COPY command, supply a folder-name, and then decide
that you do not want to copy the message, enter CTRL/Z. CTRL/Z
aborts the operation and keeps you within MAIL.
Format:
COPY folder-name [file-name]
Additional information available:
Parameters
folder-name Indicates the name of the folder to which the message is copied. If the specified folder does not exist, it is created. A folder name can be 1 to 39 characters in length. file-name Indicates the name of the mail file to which the message is copied. If the specified mail file does not exist, it is created. If a file name is omitted, the message is copied to the specified folder in the current file.
Qualifiers
Additional information available:
/ALL
/ALL Indicates that all the currently selected messages are to be copied to another message folder. You select a folder by entering the SELECT command followed by the name of the folder. (See the SELECT command for more information.) If the /ALL qualifier is omitted, only the current message is copied.
/CONFIRM
/[NO]CONFIRM Determines whether you are queried about creating a new file or folder. The default is /CONFIRM.
Examples
1.
MAIL> 2
MAIL> COPY
_Folder: MEMOS
_File: <RET>
MAIL>
This example shows how to put a copy of a mail message into another
folder (MEMOS) in the default mail file.
2.
MAIL> 5
MAIL> COPY
_Folder: GOLF
_File: SPORTS
File SPORTS.MAI does not exist.
Do you want to create it (Y/N, default is N)? Y
%MAIL-S-CREATED, DISK$AAAA:[MCFEE]SPORTS.MAI;1
%MAIL-I-NEWFOLDER, folder GOLF created
This example shows how to COPY a message to a new folder named
TENNIS in a new file named SPORTS.