个人用VB写了一个使用MAPI自动收发邮件的小程序。
使用一段时间之后,每隔2小时登陆MAPI的时候就会出现一个标题为"outlook express"的提示框,内容为:“to free up disk space,outlook Express can compact messages.This may take up to a few minutes.”
然后我就清理了收件箱、已发送和已删除,不行 还是出!
看看C盘还有7G 
将目录制定到d:\(6.8G剩余),不行还是出!
一旦出现这个消息框,程序就停下来不再自动去收发又见了……
请高手指教 如何屏蔽这个提示?或者在outlook中如何取消掉提示?

解决方案 »

  1.   

    参考:
    With Service Pack 2, Outlook Express is set to ask about Compacting messages after every 100th closing of Outlook Express. Before Service Pack 2, the default behavior had Outlook Express set to compact messages in the background which has lead to the corruption of the message store.
    Compact the messages manually, reset the Registry value which keeps track how many times Outlook Express has been closed.Why does OE insist on compacting folders when I close it?Close all programs and as a precaution create a Restore Point first.Look for this key in the Registry:
    HKEY_CURRENT_USER\Identities\{GUID}\Software\Microsoft\Outlook Express\5.0
    Double click the Compact Check Count 
    Select the Base option for Decimal and change the value to 0
    This should change both the Hexadecimal and decimal values to zero.
    Close the Registry.Let us know if the message stops occurring.
      

  2.   

    2楼的兄弟,试验了一下,现在问题出来了。
    1.这个Compact Check Count 键值在每次收发后都要增加1,当加到101以后就会出现这个消息框。
    2.如果可以在每次收发之后去清零也不是个问题,但是那个括号里的16进制数是和用户有关的,我如何能够得到这串代码呢?想给别人用都不行啊?