Widgets for Microsoft Exchange
Janitor in a DLL


Janitor in a DLL

If, instead of setting Exchange's option Empty the Deleted Items folder upon exiting, you use your Deleted Items folder as a long-term repository, you might find a one-step "Purge" command more convenient than opening that folder, selecting all the messages, pressing delete, and confirming that you want to delete them permanently. This extension provides just such a command.

Requirements and contraindications

The usual - Exchange and MAPI.

Installation

Download mtwb.zip (available in both Intel and Alpha flavors) from this Web page, and unzip it. Copy the DLL mtwb.dll into your system directory (\windows\system on Windows 95, \windows\system32 on Windows NT). Check your system directory for the file msvcrt40.dll; if you lack this, see the runtime installation instructions above. Finally, feed the file mtwb.reg to regedit. (Double-clicking it in Explorer will do this.)

De-installation

(How thoughtful of me.) Exit and log out of Exchange. Fire up regedit, open the key

HKEY_LOCAL_MACHINE\Software
\Microsoft
\Exchange
\Client
\Extensions

and delete the "Janitor in a DLL" tag and its value. Delete the file mtwb.dll from your system directory.

Usage

On the File menu of the viewer you will see a new command, Expunge Deleted Items. Select it to empty your Deleted Items folder of all deleted messages. You may place this command on the toolbar if you like.

Known shortcomings and bugs in this release

Merely emptying the Deleted Items folder does not shrink the disk file backing a Personal Folders message store. To compact the store and reclaim the space of the deleted items, go to Start - Settings - Control Panel - Mail and FAX (or from the Microsoft Exchange menu, Tools - Services), select Properties on the Personal Folders store, and press the Compact Now button.

If, after installing Janitor, you can't locate its toolbar button in the Tools.Customize Toolbar dialog, you probably have MS Office95 WordMail installed. Word 7.0 has a bug where, if its WordMail function ("Use Word as your email editor") is installed before Janitor in a DLL, it will hide Janitor's toolbar button. To work around this, uninstall and reinstall WordMail, or else go to the registry key named above, remove the two keys "Wordmail" and "Stationery," and then restore those two keys.

If Janitor finds that it cannot access one of your mounted message stores, or else doesn't have permission to empty the Deleted Items folder thereon, it will issue a rude message and ignore any remaining stores.

Change history

Go to the Widgets for Microsoft Exchange page
Go to Ben Goetter's home page

Last modified: 3 May 1996
Ben Goetter, Angry Graycat Designs