Message Store Providers and Undo in Outlook

M

MSP

Hi,

I'm writing a MSP that wraps a PST provider. I'm struggling with the Undo
functionality when Copying/Moving messages.

If I copy a message from one folder to another then the Undo becomes
available and selecting Undo deletes the message from the destination folder
as expected.

Sometimes I don't copy the original over, but copy another message into the
destination folder. In this case, the undo becomes available but fails saying
it can't find the item.

I'm not surprised by this, but I'm struggling to find out what Outlook is
doing to enable the Undo method and if I can update the "move/copy" undo
information to point at the new message(s).

I had a look at the IMAPIAdviseSink/OnNotify to see if there's anything
being passed back to indicate that a move took place, but there's nothing
special. There are a few extended ones, but they don't seem like the solution
either.

I realise this is a bit low level and it's not the sort of think people do
very often, but has anyone got any ideas?

Thanks
 
M

MSP

Think I'll answer my own question, seems like the PR_SEARCH_KEY property must
be the same on the source message and newly created copy of the message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top