Platform SDK: Exchange Server

GWCLEAN: Moving Messages from the Gateway Folder to a PST File

Use the GWCLEAN sample to move messages from the gateway folder to a personal folder, or PST file.

Syntax and Parameters

GWCLEAN ProfileName
   [/DAYS=]
   [/FILE=]
   [/FOLDER=]
   [/HELP]
Name Description
ProfileName Name of the gateway profile to move messages from.
/DAYS= Where 0 <= Num <= 9999. The number of days old a message must be to be moved. A value of 0 will move all messages sent on or before today. A value of 1 will move all messages before yesterday. Defaults to 1 (yesterday).
/FILE= Name of file to which the messages are to be moved. Defaults to GWCLEAN.PST.
/FOLDER= Name of gateway folder from which to move messages. Defaults to MTS-OUT.
/HELP Displays help message.

Example

This example moves all messages 23 days old or older to the olddump.pst file. It uses the MTS-OUT folder to check for messages to move.

gwclean profile /days=23 /file=dump.pst