PMDF User's Guide
OpenVMS Edition
PMDF-USR-VMS-6.0


Previous | Contents

COMPRESS

Compress a mail file.

Syntax

COMPRESS [in-file-spec]

Qualifiers Defaults
/OUTPUT=out-file-spec /OUTPUT=in-file-spec
/PURGE /NOPURGE

PARAMETERS

in-file-spec

Optional parameter specifying the name of the mail file to be compressed.

DESCRIPTION

The COMPRESS command compresses a mail file, making it smaller so that it uses less disk space. Compressing a mail file also provides faster access to folders and messages contained in the file.

If the optional in-file-spec parameter is not supplied, then the mail file which is currently open will be compressed. If no mail file is open, then your default mail file will be compressed.

When compressing your file, four steps are taken:


QUALIFIERS

/OUTPUT=out-file-spec

Specify an alternate name to use for the compressed mail file. If not specified then the compressed file will have the same name as the input file.

/PURGE

/NOPURGE (default)

By default, the wastebasket folder of the compressed mail file is not purged. Use the /PURGE qualifier to purge the wastebasket and reclaim the deleted space.

Examples

In the following example, the currently open mail file is compressed and purged. In the process of compressing the file, informational messages are output.

EMAIL> COMPRESS/PURGE
%EMAIL-S-CREATED, D1:[BOB]MAIL_2862_COMPRESS.TMP;1 created 
%EMAIL-S-COPIED, D1:[BOB]MAIL.MAI;1 copied to 
  D1:[BOB]MAIL_2862_COMPRESS.TMP;1 (31 records) 
%EMAIL-S-RENAMED, D1:[BOB]MAIL.MAI;1 renamed to D1:[BOB]MAIL.OLD;2 
%EMAIL-S-RENAMED, D1:[BOB]MAIL_2862_COMPRESS.TMP;1 renamed to 
  D1:[BOB]MAIL.MAI;1 
EMAIL> 


Previous | Next | Contents