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

detecting new mail in shared mailbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 22nd 08, 08:47 PM posted to microsoft.public.outlook.program_vba
Mark VII
external usenet poster
 
Posts: 6
Default detecting new mail in shared mailbox

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
  #2  
Old April 22nd 08, 09:00 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default detecting new mail in shared mailbox

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

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Mark VII" wrote in message ...
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

  #3  
Old April 22nd 08, 09:08 PM posted to microsoft.public.outlook.program_vba
Mark VII
external usenet poster
 
Posts: 6
Default detecting new mail in shared mailbox

Thanks -- I'll give that a try.

Mark

"Sue Mosher [MVP-Outlook]" wrote:

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


 




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
Shared functional mailbox Wullie Outlook - Using Contacts 0 December 10th 07 02:23 PM
Cannot see all folders of shared Mailbox [email protected] Outlook - General Queries 2 October 18th 07 05:30 PM
Mail not visible in shared mailbox Betelgeuse Outlook - General Queries 3 October 26th 06 09:37 PM
Module on Shared Mailbox DrewP Outlook and VBA 3 October 26th 06 04:21 PM
Detecting signed/encrypted mail messages [email protected] Add-ins for Outlook 1 January 29th 06 09:30 PM


All times are GMT +1. The time now is 03:37 PM.


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.