PMDF User's Guide
OpenVMS Edition


Previous Next Contents Index


SET & SHOW MAIL_DIRECTORY

Move mail files to the specified subdirectory.

restrictions

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.

Syntax

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

Parameters

[.subdirectory]

Required parameter specifying the subdirectory to move mail files to.

Description

The SET MAIL_DIRECTORY command 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_DIRECTORY command causes your mail files to be moved back to your login directory. Use the SHOW MAIL_DIRECTORY command to determine where your mail files are currently located.

System managers may wish to use the /NOCONFIRM qualifier when automatically generating settings for a number accounts with the /USER qualifier.


Qualifiers

/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 /USER qualifier, 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 /NOCONFIRM qualifier 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.

Examples

#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