Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / August 2005

Tip: Looking for answers? Try searching our database.

Outlook new mail?  Only want to look at new mail. how?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger - 01 Aug 2005 15:47 GMT
I have a process set up to monitor the Outlook.newMail event.

This seems to be working great.

The problem I have is when this event is fired how do I know how many
e-mails I just received.

I would love to just look at the "New" e-mails and not all of the e-mails in
the inbox?

Currenly I am just looking at the Top or First e-mail, but that doesn't work
when
I get multiple e-mails.

Is there a way to just get the collection of "New" e-mails?

Or is there another way to do this?

Thanks,

Rog
Brian Tillman - 01 Aug 2005 16:11 GMT
> I would love to just look at the "New" e-mails and not all of the
> e-mails in the inbox?

Change your View to "Unread Messages".
Signature

Brian Tillman

Sue Mosher [MVP-Outlook] - 25 Aug 2005 14:03 GMT
The NewMail event doesn't provide that kind of information. You could maintain a record of the time of the last NewMail event and search the Inbox for all items received since that date/time. The more common approach is to use the MAPIFolder.Items.ItemAdd event, which has its own limitation -- it doesn't fire if more than 16 items arrive at the same time.

FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public
.outlook.program_vba
. This group is for application interoperability issues, not COM interop.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

>I have a process set up to monitor the Outlook.newMail event.
>
[quoted text clipped - 17 lines]
>
> Rog
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.