1

Resolved

Investigate CDO support

description

When running MAPIFolders on the CDO download instead of Outlook's MAPI, it fails due to the MDB_ONLINE flag on line 310 and 352:
C:\Users\svcglobappqmm01\Downloads>MAPIFolders.exe -checkfolderacl "\somefolder"
MAPIFolders started at 17:24:43
Found 2 stores in MAPI profile:
Opening public folders...
FAILED! hr = 80040106.  LINE = 310
 >>> pSession->OpenMsgStore(NULL, publicEntryID.cb, (LPENTRYID)publicEntryID.lpb
, NULL, MAPI_BEST_ACCESS | MDB_ONLINE, &lpMDB)
Failed to get root folder
FAILED! hr = 8004010f.  LINE = 30
 >>> OperationBase::Initialize()
FAILED! hr = 8004010f.  LINE = 67
 >>> checkACLOp->Initialize()
MAPIFolders.exe -checkfolderacl "\somefolder"
MAPIFolders started at 19:03:17
Found 2 stores in MAPI profile:
Opening public folders...
Using public folder server/mailbox: SERVER1
FAILED! hr = 80040106.  LINE = 352
 >>> pSession->OpenMsgStore(NULL, adminEntryID.cb, (LPENTRYID)adminEntryID.lpb,
NULL, MAPI_BEST_ACCESS | MDB_ONLINE, &lpAdminMDB)
Failed to get root folder
FAILED! hr = 8004010f.  LINE = 30
 >>> OperationBase::Initialize()
FAILED! hr = 8004010f.  LINE = 67
 >>> checkACLOp->Initialize()
Removing that MDB_ONLINE flag makes it work. However, when running on Outlook we DO want to use that flag.

Therefore it would be nice if MAPIFolders would catch the failure, drop the flag, and retry, just in case we're running on CDO.

comments

bilong wrote Sep 11, 2015 at 5:56 PM

Fixed in changeset 3b9259dda0b39abd28b41915b11a6e08ad22e9d0