MAIL DIRECTORY — VMS 5.0
Displays a list of the messages in the current mail file, including
message number, sender's name, date, and subject.
If "folder-name" is omitted, MAIL displays a directory of the
currently selected folder. If there is no currently selected
folder, MAIL displays a directory of the NEWMAIL folder (if unread
messages exist) or the MAIL folder. (See the SELECT command for
information about selecting messages.) You create a new set of selected
messages everytime you use any directory qualifier except the /EDIT
qualifier.
Format:
DIRECTORY [folder-name]
Additional information available:
Parameters
folder-name Indicates the name of the folder containing the messages you want to display.
Qualifiers
Additional information available:
/BEFORE/CC_SUBSTRING/EDIT/FROM_SUBSTRING/FOLDER
/FULL/MARKED/NEW/REPLIED/SINCE/START/SUBJECT_SUBSTRING
/TO_SUBSTRING
/BEFORE
/BEFORE=date Displays a listing of all the mail messages received before the specified date.
/CC_SUBSTRING
/CC_SUBSTRING=text Selects messages which contain "text" in the CC field of the message.
/EDIT
/EDIT Invokes the editor using the output of the DIRECTORY command as input to the editor. Enables you to find messages easily by scrolling through the folders or searching text.
/FROM_SUBSTRING
/FROM_SUBSTRING=text Selects messages which contain "text" in the FROM field of the message.
/FOLDER
/FOLDER Displays a listing of all the folders contained in the current mail file.
/FULL
/FULL Displays the number of records in the message and the external id number. Also displays attributes such as whether you have replied to the message, whether the message is marked, and whether the message is new.
/MARKED
/[NO]MARKED Selects messages that have been marked (indicated by an asterisk). The /NOMARKED qualifier selects messages that are not marked.
/NEW
/NEW Displays a listing of any new (unread) mail messages.
/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 Displays a listing of all the mail messages received on or after the specified date.
/START
/START=start-point Indicates the first message number you want to display. For example, to display all the messages beginning with number three, enter the command line DIRECTORY/START=3. Use the /START qualifier with the /FOLDER qualifier to indicate the first folder name you want to display. For example, to display all the folder names alphabetically following PLEAT, enter the command line DIRECTORY/START=PLEAT/FOLDER.
/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
MAIL
# From Date Subject
1 MARK 11-APR-1988 The Yen
2 MARK 11-APR-1988 The Buck
3 BILL 13-APR-1988 The Pound
4 BILL 13-APR-1988 The Dollar
5 BILL 14-APR-1988 The Cent
6 MARK 17-APR-1988 The Dime
This example shows how to display a listing of all the messages in
the current folder by using the DIRECTORY command.
2.
MAIL> DIRECTORY/SUBJECT_SUBSTRING= POUND
# From Date Subject
3 BILL 13-APR-1988 The Pound
This example shows how to use the /SUBJECT_SUBSTRING qualifier to find
messages that contain the text POUND in the subject field.
3.
MAIL> DIRECTORY/SINCE=13-OCT
MAIL
# From Date Subject
1 MARK 13-OCT-1988 The Yen
2 MARK 13-OCT-1988 The Buck
3 BILL 15-OCT-1988 The Pound
4 BILL 17-OCT-1988 The Dollar
5 BILL 20-OCT-1988 The Cent
6 MARK 21-OCT-1988 The Dime
This example shows how to use the /SINCE qualifier with the
DIRECTORY command to display a listing of all the mail messages
received on or after October 13, 1988 in the current folder.
4.
MAIL> DIRECTORY/FOLDER
Listing of folders in DISK$:[BACON]MAIL.MAI;1
Press CTRL/C to cancel listing
MAIL NEW_HIRES
PROJECTS SALES_LEADS
This example shows how to display a listing of all the folders in
the current mail file.