MAPI ItemAdd Event Question

  • Thread starter Thread starter muser8
  • Start date Start date
M

muser8

Suppose I:
1. Have an add-in that sinks the ItemAdd event on a public folder.
2. This add-in is deployed on multiple desktops.
3. Want a dialog to appear when an item is added to the sinked
folder.
4. Want that dialog to appear only for the user who dragged,
copied, moved, or otherwise added the message to the sinked
folder.

Obviously 1 - 3 above are rather simple. Does anyone have any
suggestions for number 4? FYI, the added messages might originate from
any other folder, so this precludes any 'sink the source folder'
scenarios.


TIA,
Sean
 
In ItemAdd check the field for who created the item and try to match that to
the current user. Only show the dialog if they match.
 
Can you give me any hints on how i can figure out who created the
item? I didn't see an explicit property on any of the outlook Item
object and a quick dump of the MAPI fields didn't turn up anything
interesting.

Thanks,
Sean
 
Can you give me any hints on how i can figure out who created the
item? I didn't see an explicit property on any of the outlook Item
object and a quick dump of the MAPI fields didn't turn up anything
interesting.

Thanks,
Sean
 
What type of folder and what sort of items? If mail items in an Exchange
2000 or later server are they being converted into Post items?

For a mail item I would check both PR_CREATOR_NAME (0x3FF8001E) and
PR_LAST_MODIFIER_NAME (0x3FFA001E).
 
Back
Top