Share via


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

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

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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

To build and use GWCLEAN with a Microsoft® Exchange 2000 Sample Gateway, you must perform the following tasks:

  • Create an Exchange 2000 profile. Although a profile is created when you install the Sample Gateway, you must explicitly run PROFINST with the /EX2000 parameter. For more information, see PROFINST: Installing a MAPI Profile.
  • Update the mapisvc.inf file in the \WINNT\system32 directory. You can do this by copying the file from the \Program Files\Common Files\System\Mapi\<language id>\NT\directory to the \WINNT\system32 directory. To use English as the language, change <language id> to 1033.

The following is the syntax for GWCLEAN:

GWCLEAN ProfileName
	[/DAYS=]
	[/FILE=]
	[/FOLDERS=]
	[/HELP]

GWCLEAN has the following parameters:

Parameter Description
ProfileName Name of the gateway profile to move messages from.
/DAYS= Where 0 <= Num <= 9999. The number of days old a message must before it can 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

The following 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=olddump.pst

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.