| Previous | Next | Contents | Index |
Move mail files to the specified subdirectory.
Requires SYSPRV or SYSNAM privilege to show information for users other than yourself. Requires SYSPRV privilege plus general file access privileges to set information and move files for users other than yourself.
SET MAIL_DIRECTORY [.subdirectory]
SET NOMAIL_DIRECTORY
SHOW MAIL_DIRECTORY
Qualifiers Defaults /ALL /NOALL /LOG /NOLOG /NOCONFIRM None /UIC="[g,m]" None /USER=username None
[.subdirectory]
Required parameter specifying the subdirectory to move mail files to.
The
SET MAIL_DIRECTORYcommand specifies that all mail files --- files with the extension .MAI --- be moved from their current location to the specified subdirectory of your login directory. Normally, your mail files clutter up your login directory. You can prevent this by moving them to a subdirectory such as [.MAIL].The
SET NOMAIL_DIRECTORYcommand causes your mail files to be moved back to your login directory. Use theSHOW MAIL_DIRECTORYcommand to determine where your mail files are currently located.System managers may wish to use the
/NOCONFIRMqualifier when automatically generating settings for a number accounts with the/USERqualifier.
/NOCONFIRM
Users who have not yet run a VMS mail client will not yet have a profile entry in the VMS MAIL profile database. When attempting to set a mail subdirectory for such a user with the/USERqualifier, you will be prompted as to whether or not to really make the setting (it is possible that there is no profile entry because you mistyped the username). To avoid being prompted, use the/NOCONFIRMqualifier in which case an profile entry will be created with the correct mail subdirectory setting. This is useful, for instance, when generating settings for a number of recently created user accounts.
| #1 |
|---|
EMAIL> SET MAIL_DIRECTORY/LOG [.MAIL]
%EMAIL-S-CREATED, D1:[BOB.MAIL] created
%EMAIL-S-RENAMED, D1:[BOB]MAIL.MAI;1 renamed to D1:[BOB.MAIL]MAIL.MAI;1
%EMAIL-S-RENAMED, D1:[BOB]MAIL$03C813CD00050095.MAI;1 renamed to
D1:[BOB.MAIL]MAIL$03C813CD00050095.MAI;1
EMAIL>
|
In this example, the user BOB elects to store his mail files in the subdirectory [.MAIL].
| #2 |
|---|
EMAIL> SET MAIL_DIRECTORY/LOG/USER=* [.MAIL]
.
.
.
EMAIL>
|
In this example, the mail files for every user of the system (with a profile database entry) are moved to the subdirectory [.MAIL] of their login directory.
| Previous | Next | Contents | Index |