The 20 Minute E-mail Solution!
TOC PREV NEXT INDEX

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).

Example

immsgexp -tC:\[IMail Top Level Directory] -d60

Command Option Function
-t The directory that contains 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. If this parameter is omitted, messages are deleted from all mailboxes.


Ipswitch, Inc.
http://www.ipswitch.com
TOC PREV NEXT INDEX
©Ipswitch 2005