MAIL FILE — VMS 5.2
Moves the current message to the specified folder. You can use the
FILE command and the MOVE command interchangeably because they work
the same way.
If you enter the FILE command, supply a folder-name, and then decide
that you do not want to file the message, enter CTRL/Z. CTRL/Z
aborts the operation and keeps you within MAIL.
Format:
FILE folder-name [file-name]
Additional information available:
Parameters
folder-name Indicates the name of the folder to which the current message is moved. If the specified folder does not exist, you are asked if you want to create it. A folder name can be 1 to 39 characters in length. file-name Indicates the name of the file to which the current message is to be moved. If the specified file does not exist, it is created. If the file name is omitted, the message is moved to the specified folder in the current file.
Qualifiers
Additional information available:
/ALL
/ALL Moves all the messages in the current folder to the specified folder.
/CONFIRM
/[NO]CONFIRM Determines whether you are queried about creating a new file or folder. The default is /CONFIRM.
Examples
1.
MAIL> 2
MAIL> FILE
_Folder: WINNERS
_File: <RET>
Folder WINNERS does not exist.
Do you want to create it (Y/N, default is N)?
%MAIL-I-NEWFOLDER, folder WINNERS created
MAIL> SELECT WINNERS
%MAIL-I-SELECTED, 1 message selected
MAIL> DIRECTORY
WINNERS
# From Date Subject
1 BURK 18-APR-1988 Early American Art
MAIL>
This example shows how to use the FILE command to move a message to
a new folder named WINNERS and the SELECT command to move to the
newly created folder.
2. MAIL> FILE /NOCONFIRM
_Folder: SCHEDULES
_File: AUGUST
%MAIL-S-CREATED, DISK$:[SARAH]AUGUST.MAI;1 created
%MAIL-I-NEWFOLDER, folder SCHEDULES created
This example shows how to use the FILE command to move a message to
a new folder named SCHEDULES and a new file AUGUST.