1 FILE 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. Note, however, that the FILE command deletes the message from the original folder, unlike the COPY command, which leaves a copy. If (after entering the FILE command, pressing Return, and supplying a folder name at the prompt, but before pressing Return again), you decide that you do not want to file the message, press Ctrl/C. Ctrl/C terminates the operation and keeps you within Mail. If you omit the folder and file name parameters, Mail prompts you for both. If you supply only the foldername, Mail uses the current mail file and does not prompt you for the file name. Format FILE foldername [file-spec] 2 Parameters foldername Indicates the name of the folder to which the current message is to be moved. If the specified folder does not exist, Mail asks whether you want to create it. If you respond with Y, Mail creates the new folder. A folder name can be 1 to 39 characters in length. Valid characters for folder names are alphanumeric characters, dollar signs ($), and underscores (_). If your folder name contains lowercase letters, spaces, or special characters, the folder name must be enclosed in quotation marks. file-spec Indicates the name of the mail file to which the current message is to be moved. If you omit the file name, Mail moves the message to the specified folder in the current file. 2 Qualifiers /ALL Moves all of the currently selected messages to the specified folder. /CONFIRM /CONFIRM /NOCONFIRM Determines whether you are queried about creating a new folder or file. The default qualifier is /CONFIRM. 2 Examples 1.MAIL> 2 MAIL> FILE _Folder: WINNERS _FILE: Folder WINNERS does not exist. Do you want to create it (Y/N, default is N)? y %MAIL-I-NEWFOLDER, folder WINNERS created MAIL> SELECT WINNERS %MAIL-I-SELECTED, 1 message selected MAIL> DIRECTORY WINNERS # From Date Subject 1 BURK 11-DEC-1994 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. Status: 200 OK Content-Type: text/plain; charset=ISO-8859-1 Last-Modified: Sat, 03 May 2014 08:01:39 GMT Script-Control: X-stream-mode=1 1 Files You can create files to organize your mail messages. You use the same commands to create a mail file that you use to create a folder: COPY, MOVE, and FILE. After Mail prompts you for the name of the folder, it also prompts you for a file name. If you enter a new file name at the File: prompt, a new mail file is created. For example, to move the current message into a folder named FEED in the ACCOUNTS file, enter the following commands: MAIL> MOVE _Folder: FEED _File: ACCOUNTS The MOVE command creates the mail file ACCOUNTS.MAI (if it does not already exist), moves the current message into the FEED folder, and deletes the message from its current folder and file. To work within a mail file other than the default file (usually a file called MAIL), use the command SET FILE to specify the alternate file. The command SHOW FILE displays the name of the current mail file. When you change mail files, Mail deletes the messages in the WASTEBASKET folder of the current mail file if AUTO_PURGE is set, and closes the mail file that you were using.