
Receiving notification on Send, Receive and Delete
Hi everyone,
I want to be able to trap 3 events: Receipt of new mail, sending mail, and
deleting a mail item.
I'm not yet sure which versions of Outlook I need to support. I know for
receiving and sending, I can use trap events like NewMail or ItemAdd and
ItemSend, but I think that's only in OL2000/2002. Not yet sure how to get
notified about a deletion. I could trap ItemAdd on the DeletedItems folder I
guess, but what if the user deletes by hitting Shift-Delete, which doesn't
send the item to the DeletedItems folder and just permanently deletes it?
So the actual questions are:
1. How would you get notification of new mail, sending mail, or deleting
mail prior to OL2000?
2. How would you get notification of deleting mail in OL2000+, including if
the user "permanently" deletes an item using Shift-Delete?
3. Any comments on the differences between trapping inboxFolder_ItemAdd vs.
olApp_NewMail?
Thank you! Email replies would be great too.
David Horowitz