A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Soft Deletes, Hard Deletes, Shift+Delete, Move, etc.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 23rd 06, 12:45 AM posted to microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Marty List
external usenet poster
 
Posts: 2
Default Soft Deletes, Hard Deletes, Shift+Delete, Move, etc.


I'm writing an auditing tool and I'm trying to find out exactly what happens to
an item in Outlook when you 1.) Delete 2.) Shift+Delete and 3.) Move.

By doing a before & after comparison of the PR_ENTRYID, here's what I think
Outlook is doing:

- If you press the Delete key (or button), the item is
1. Copied to the Deleted Items folder
2. Hard deleted (permanently purged) from the original folder

- If you press Shift+Delete, the item is
1. Soft deleted in the original folder (flagged as deleted & hidden)

- If you Move an item to a new folder, the item is:
1. Copied to the new folder
2. Soft deleted in the original folder (flagged as deleted & hidden)

NOTES:
- The above scenarios do not apply if the item is already in the Deleted Items
folder.

- If Outlook is running in cached mode, items do not show up in the Recover
Deleted Items window until a Send/Receive has occurred. Also, recovered items
do not show up in the original folder until a Send/Receive has occurred.


I've tried to use the Compare and Watch functionality OutlookSpy, no luck. I'm
opening the IMessage window for the item, then on the Watch tab I click
"All --" and then "Dump Now". Then I do one of the above actions and click
"Dump Now", but OutlookSpy says "*** No changes ***".

Any suggestions/more info would be appreciated.



  #2  
Old March 23rd 06, 04:46 AM posted to microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Soft Deletes, Hard Deletes, Shift+Delete, Move, etc.

Compare tab in OutlookSpy (IMessage window) won't really help you since if a
message is deleted, you can't access it anymore.
All of your conclusions are correct, just keep in mind that the cached store
does not expose soft deleted contents table, you will only be able to see
deleted messages there after the cached store propagates the changes to the
online store on the server.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Marty List" wrote in message
...

I'm writing an auditing tool and I'm trying to find out exactly what
happens to an item in Outlook when you 1.) Delete 2.) Shift+Delete and 3.)
Move.

By doing a before & after comparison of the PR_ENTRYID, here's what I
think Outlook is doing:

- If you press the Delete key (or button), the item is
1. Copied to the Deleted Items folder
2. Hard deleted (permanently purged) from the original folder

- If you press Shift+Delete, the item is
1. Soft deleted in the original folder (flagged as deleted & hidden)

- If you Move an item to a new folder, the item is:
1. Copied to the new folder
2. Soft deleted in the original folder (flagged as deleted & hidden)

NOTES:
- The above scenarios do not apply if the item is already in the Deleted
Items folder.

- If Outlook is running in cached mode, items do not show up in the
Recover Deleted Items window until a Send/Receive has occurred. Also,
recovered items do not show up in the original folder until a Send/Receive
has occurred.


I've tried to use the Compare and Watch functionality OutlookSpy, no luck.
I'm opening the IMessage window for the item, then on the Watch tab I
click "All --" and then "Dump Now". Then I do one of the above actions
and click "Dump Now", but OutlookSpy says "*** No changes ***".

Any suggestions/more info would be appreciated.





  #3  
Old March 23rd 06, 03:47 PM posted to microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Marty List
external usenet poster
 
Posts: 2
Default Soft Deletes, Hard Deletes, Shift+Delete, Move, etc.


Thanks for the info. I'm curious why the Watch tab on the IMessage window
doesn't capture the delete or move (read, copy, delete) events.

Also, I'm curious why IMAPIFolder and IMsgStore don't have a Watch tab? I would
like to see all the events happening to a folder.


"Dmitry Streblechenko" wrote in message
...
Compare tab in OutlookSpy (IMessage window) won't really help you since if a
message is deleted, you can't access it anymore.
All of your conclusions are correct, just keep in mind that the cached store
does not expose soft deleted contents table, you will only be able to see
deleted messages there after the cached store propagates the changes to the
online store on the server.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Marty List" wrote in message
...

I'm writing an auditing tool and I'm trying to find out exactly what happens
to an item in Outlook when you 1.) Delete 2.) Shift+Delete and 3.) Move.

By doing a before & after comparison of the PR_ENTRYID, here's what I think
Outlook is doing:

- If you press the Delete key (or button), the item is
1. Copied to the Deleted Items folder
2. Hard deleted (permanently purged) from the original folder

- If you press Shift+Delete, the item is
1. Soft deleted in the original folder (flagged as deleted & hidden)

- If you Move an item to a new folder, the item is:
1. Copied to the new folder
2. Soft deleted in the original folder (flagged as deleted & hidden)

NOTES:
- The above scenarios do not apply if the item is already in the Deleted
Items folder.

- If Outlook is running in cached mode, items do not show up in the Recover
Deleted Items window until a Send/Receive has occurred. Also, recovered
items do not show up in the original folder until a Send/Receive has
occurred.


I've tried to use the Compare and Watch functionality OutlookSpy, no luck.
I'm opening the IMessage window for the item, then on the Watch tab I click
"All --" and then "Dump Now". Then I do one of the above actions and click
"Dump Now", but OutlookSpy says "*** No changes ***".

Any suggestions/more info would be appreciated.




  #4  
Old March 23rd 06, 05:19 PM posted to microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Soft Deletes, Hard Deletes, Shift+Delete, Move, etc.

Watch tab catches the fnevObjectModified notification for that message,
reopens it, retrieves the properties, then compares them with what it
currently has.
If a message is deleted, fnevObjectModified is not fired. Even if it did,
OutlookSpy would not be able to reopen the deleted or moved message since
the old entry id is longer valid.
That feature was designed to help figure out what changes on the MAPI
properties level when you modify something in the Outlook UI. The only
reason that is not available for IMAPIFolder and IMsgStore is because it
won't be very useful for these objeects.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Marty List" wrote in message
...

Thanks for the info. I'm curious why the Watch tab on the IMessage window
doesn't capture the delete or move (read, copy, delete) events.

Also, I'm curious why IMAPIFolder and IMsgStore don't have a Watch tab? I
would like to see all the events happening to a folder.


"Dmitry Streblechenko" wrote in message
...
Compare tab in OutlookSpy (IMessage window) won't really help you since
if a message is deleted, you can't access it anymore.
All of your conclusions are correct, just keep in mind that the cached
store does not expose soft deleted contents table, you will only be able
to see deleted messages there after the cached store propagates the
changes to the online store on the server.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Marty List" wrote in message
...

I'm writing an auditing tool and I'm trying to find out exactly what
happens to an item in Outlook when you 1.) Delete 2.) Shift+Delete and
3.) Move.

By doing a before & after comparison of the PR_ENTRYID, here's what I
think Outlook is doing:

- If you press the Delete key (or button), the item is
1. Copied to the Deleted Items folder
2. Hard deleted (permanently purged) from the original folder

- If you press Shift+Delete, the item is
1. Soft deleted in the original folder (flagged as deleted & hidden)

- If you Move an item to a new folder, the item is:
1. Copied to the new folder
2. Soft deleted in the original folder (flagged as deleted & hidden)

NOTES:
- The above scenarios do not apply if the item is already in the Deleted
Items folder.

- If Outlook is running in cached mode, items do not show up in the
Recover Deleted Items window until a Send/Receive has occurred. Also,
recovered items do not show up in the original folder until a
Send/Receive has occurred.


I've tried to use the Compare and Watch functionality OutlookSpy, no
luck. I'm opening the IMessage window for the item, then on the Watch
tab I click "All --" and then "Dump Now". Then I do one of the above
actions and click "Dump Now", but OutlookSpy says "*** No changes ***".

Any suggestions/more info would be appreciated.






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Occurrence appointments in the calander shift one hour ahead John E Outlook - Calandaring 2 March 21st 06 10:10 AM
Email disappears - deletes after opening Getaway Outlook Express 3 March 9th 06 02:52 AM
Any way to notify the Owner(s) of the Shared Calendar when Moves/Adds/Changes/Deletes are made? David M. Kurtz Outlook - Calandaring 1 February 22nd 06 10:06 PM
How do I Run Outlook and keep it on the hard disk Mike Outlook - General Queries 3 February 20th 06 06:06 PM
Cannot move/delete messages from Sent folder KBAR Outlook Express 1 February 10th 06 03:49 PM


All times are GMT +1. The time now is 06:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.