MAPI ItemAdd Event Question

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 
M

muser8

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
 
M

muser8

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
 
K

Ken Slovak - [MVP - Outlook]

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).
 

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