Hi,
it shall work by tracking the Explorer.Close event. But my experience
is, that it doesn´t. OL doesn´t fire this event.
The best way I know would be building an Add-In, e.g. with VB.

Signature
Viele Grüße
Michael Bauer
> I am trying to do the following:
>
> Just before Outlook closes,
> - for all the items that are in the main Inbox folder that do not have
> any flags, move it to a specific folder
> - clear all the deleted items in all the mailboxes