I'm using Redemption to move thousands of mails from an exchange account to a pst store. For moving all the mails I'm using the MoveMultiple method on the folder. The move operation should also work with activated Cached Mode, even when the mail is not loaded to the local user outlook profile.
const int MAPI_NO_CACHE = 0x200;
const int MAPI_BEST_ACCESS = 0x10;
var onlineFolder = session.GetFolderFromID (folderId, storeId, MAPI_NO_CACHE + MAPI_BEST_ACCESS);
Actually this works just fine and all the mails are moved to the pst file, but the origin mail is not deleted on the exchange server.
Are you guys experiencing the same problem or am I doing something wrong? Do I need to manually start a sync of this folder? Any ideas?
Thx in advance
UPDATE
@DmitryStreblechenko: The problem was, that no exchange items were deleted at all, however they were "copied" correctly to the pst store.
I did some further investigations and it seems that there might be a problem with my exchange account. :'-(
Event when I move the Items via my Outlook client they are only copied to the pst store - the origin mails remain in the exchange store. I don't now why because I don't get an error or ComException. It looks like that everything worked correctly, but the opposite ist true. Btw. the deletion of the mail works as expected.
I now switched to a different exchange account and with that the move to the pst store with activated Cached Mode works perfectly. I don't know why Outlook is struggling with my primary exchange account. I dont' get any errors.
How do you investigate these "errors"?