detecting new mail in shared mailbox

  • Thread starter Thread starter Mark VII
  • Start date Start date
M

Mark VII

Greetings --

I'm doing some work on automated processing of incoming email. Am able to
detect and process email coming into my personal inbox by hooking the
Application_NewMailEx event. However when email arrives in a shared mailbox,
this event doesn't fire.

What's the best way to detect new mail in a shared mailbox? I'm trying to
stay away from rules, because of the way that VbaProject_OTM disappears
sometimes if you use rules.

Thanks,
Mark
 
Subscribe to the MAPIFolder.Items.ItemAdd event on the mailbox's Inbox folder, which you can return with the Namespace.GetSharedDefaultFolder method.
 
Back
Top