Using the stcclean tool

Document ID: 10226

Synopsis

Stcclean is a tool used to clean up STC files left over from 5.2.5 after an upgrade has been performed on the mail server to 5.3.x or higher.

More Information

Using the stcclean tool Stcclean is a tool used to clean up STC files left over from 5.2.5 after an upgrade has been performed on the mail server to 5.3.x or higher. Stcclean.vbs was designed to help clean up cluttered .STC files in the message store. Version 5.3.4 does not use these files any longer. The removal of the *.STC files will dramatically facilitate message store back ups.

STC files contained the cached MIME parsing information of the message; it tells the MailSite engine where the body parts of a message start and stop. If the message is large, it means the engine does not have to wade through a 6MB message looking for the boundaries, the problem with STC files is the abundance of 1 kilobyte file per message, which caused a performance problem at the file system.

To use stcclean, please follow the steps below:

  1. Open a command console
  2. Browse to the MailSite directory location.
  3. stcclean usage is as follows:
    • X:\Mailstore location\BOX
    • 5000 (delay in milliseconds between file deletion)
    • 5 (interval report period)
Reports are shown on the screen as paths to the specific mailbox stcclean is currently removing stc files.

Example
C:\Program Files\MailSite>cscript stcclean.vbs d:\mailboxes 15 1 Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

D:\mailboxes\domains.com\!9\!t\!w\9two9er\INBOX\Sent Mail

Alternative

You can use 'del /s *.stc' command from the Command Prompt to carry out a similar function. This is a little simpler than using the stcclean.vbs tool.

  • Open the Command Prompt
  • Switch to the BOX directory
  • Enter 'del /s *.stc'