Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21410

Outlook Express Compacting Issue

$
0
0
As we all know Outlook Express needs to periodically compact its database for proper operation. However, I have recently discovered a very disturbing issue regarding the compacting process in Outlook Express; it increases it's "Compact Check Count" in the Registry every time a MAPI session is closed. In other words, even if there are no new messages added to the database the count will increase every time an application checks for new messages; whether there are any or not. Further to "Fetch" new messages a session needs to be closed, and then re-opened.

Once the "Compact Check Count" exceeds 100 the dreaded compact request pops up stalling any process trying to access the client.

Considering that the compacting process only takes a few seconds, I've never understood the need for the client to ask permission; why doesn't it just do it, or at least provide an option to bypass the request.

At any rate it seems I have two options; either to have my received message checking App try to find the "Outlook Express" compacting request window, find it's "Ok" button and then "Click" the button; or switch over to using CDO and directly access the server providing the email of interest. Currently I have no familiarity with CDO, nor have I found any good examples.

Does anyone have any suggestions?

Viewing all articles
Browse latest Browse all 21410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>