0
votes

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"?

1
Do you see items in Outlook after syncing?Eugene Astafiev
Do you mean the locally cached items are deleted from both the local OST file and the online mailbox, but the old emails not present in OST are not deleted from the online mailbox? Or that no Exchange items are deleted at all? Or that they are deleted from the online mailbox but not the OST store?Dmitry Streblechenko
@DmitryStreblechenko: I've updated my question and added further information in the UPDATE sectionpego
@EugeneAstafiev : After the operation I still can see the mails in my exchange web access. After a fresh sync the items also appear in my Outlook client.pego
Try to close Outlook, rename the old OST file, then start Outlook again and let it sync your mailbox. Could be cached store corruption...Dmitry Streblechenko

1 Answers

0
votes

CONCLUSION: After some investigations I found out, that something was broken with my "Deleted Items" folder of the exchange account and the problem was not related to any client or Redemption.

FIX: Unfortunately I was not able to empty the "Deleted Items" folder on any client or the exchange web access I wrote a little script to delete each item programmatically. After that I created a new Outlook profile and restarted Outlook in safe mode and voilà suddenly I can now empty the "Deleted Items" folder on any client. Even the move operation to PST file works as expected - the origin mails are deleted in the source directory.