Deleting Old Messages (immsgexp.exe)

Immsgexp.exe is a utility that deletes messages older than a specified number of days.

Basic Command Syntax

immsgexp -t startdirectory -d #of_days_to_save

Any mailbox found beneath startdirectory will be scanned and any message older than #of_days_to_save will be deleted. A log of exYYMMDD.log (or exYYMMDD.### if .log already exists) will be created and log which directories/mailboxes were scanned, how many messages were deleted, and the amount of disk space saved (by file and directory).

Examples:

The following command deletes all messages in the C:\Program Files\Ipswitch\Collaboration Suite\IMail directory that are more than 60 days old.

immsgexp -tC:\Program Files\Ipswitch\Collaboration Suite\IMail - d60

The following command deletes all messages in the "spam" mailbox located in the c:imail directory that are more than 60 days old.

Immsgexp –C:\Program Files\Ipswitch\Collaboration Suite\IMail –mspam –d60

immsgexp.exe supports the following command line options:

Command

Function

-t

The directory containing the mailboxes from which messages will be deleted.

-d

The number of days that a message will remain on the server before it is deleted.

-m

The name of the mailbox from which messages will be deleted.