MAIL SELECT — MicroVMS 4.5B
Establishes a folder of messages that you can affect as a group.
You can COPY or MOVE selected messages from one folder to another.
Or, you can READ and DELETE, or SEARCH and EXTRACT a folder of
messages. After you SELECT a folder of messages, you can use the
following commands to affect them:
COPY
DELETE
DIRECTORY
EXTRACT
MOVE
READ
SEARCH
You can also use the SELECT command to move from one folder to
another.
If you select a folder that does not exist, MAIL displays the
following message:
%MAIL-E-NOTEXIST, folder folder-name does not exist
Format:
SELECT [folder-name]
Additional information available:
Parameters
folder-name The name of the folder to be selected. If no folder name is specified, the current folder is selected.
Qualifiers
Additional information available:
/BEFORE
/BEFORE=date Indicates that messages dated before the specified date be selected.
/NEW
/NEW Indicates that new (unread) messages be selected. This qualifier can only be used with the MAIL file.
/SINCE
/SINCE=date Indicates that messages dated after the specified date be selected.
Examples
1.
MAIL> DIRECTORY/FOLDERS
MAIL NEWMAIL
WASTEBASKET
MAIL> SELECT WASTEBASKET
%MAIL-I-SELECTED, 3 messages selected
MAIL> DIRECTORY
WASTEBASKET
# From Date Subject
1 GORK 19-APR-1985 Venus Fly Traps
2 GORK 21-APR-1985 The Aloe
3 BURT 22-APR-1985 Scales
This example shows how to use the SELECT command to move from the
MAIL folder to the WASTEBASKET folder.
2.
MAIL> SELECT/BEFORE=12-APR-1985
%MAIL-I-SELECTED, 2 messages selected
MAIL> DIRECTORY
# From Date Subject
1 MART 10-APR-1985 Food
2 BART 11-APR-1985 Soup
This example shows how to display all the mail messages received
before April 12, 1985.
3.
MAIL> SELECT/NEW
This example shows how to select all the new (unread) mail messages.
Because NEWMAIL is the implied folder name, you do not need to
specify a folder name.