MAIL SELECT — VMS 5.5-2H4
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
FILE
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/CC_SUBSTRING/FROM_SUBSTRING/MARKED/NEW
/REPLIED/SINCE/SUBJECT_SUBSTRING/TO_SUBSTRING
/BEFORE
/BEFORE=date Indicates that messages dated before the specified date be selected. If no date is specified, all the messages received before the current day are selected.
/CC_SUBSTRING
/CC_SUBSTRING=text Selects messages which contain "text" in the CC field of the message.
/FROM_SUBSTRING
/FROM_SUBSTRING=text Selects messages which contain "text" in the FROM field of the message.
/MARKED
/[NO]MARKED Selects messages which have been marked. The /NOMARKED qualifier selects messages that are not marked.
/NEW
/NEW Indicates that new (unread) messages be selected. This qualifier can only be used with the MAIL file.
/REPLIED
/[NO]REPLIED Selects messages which have been replied to with the REPLY command. The /NOREPLIED qualifier selects messages that have not been replied to.
/SINCE
/SINCE=date Selects messages dated on or after the specified date.
/SUBJECT_SUBSTRING
/SUBJECT_SUBSTRING=text Selects messages which contain "text" in the SUBJECT field of the message.
/TO_SUBSTRING
/TO_SUBSTRING=text Selects messages which contain "text" in the TO field of the message.
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-1988 Venus Fly Traps
2 GORK 21-APR-1988 The Aloe
3 BURT 22-APR-1988 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-1988
%MAIL-I-SELECTED, 2 messages selected
MAIL> DIRECTORY
# From Date Subject
1 MART 6-APR-1988 Food
2 BART 11-APR-1988 Soup
This example shows how to display all the mail messages received
before April 12, 1988.
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.