Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 29 Jan 2008 13:52:57 -0600,    group: microsoft.public.exchange.development        back       


Number of New Messages   
I am looking for code to put in our intranet portal which will indicate the 
number of unread (new) messages in a users exchange mailbox.  The users of 
the intranet have logged in with valid AD credentials.  Our intranet is 
written using ASP.NET and has some C#.  Any code examples would be greatly 
appreciated.

Thanks.
date: Tue, 29 Jan 2008 13:52:57 -0600   author:   Bill Westrate

Re: Number of New Messages   
What version of Exchange are you using 2000/3 or 2007 in Exchange 2000/3 you 
can do this using WebDAV in 2007 you can do this using Exchange Web Services 
(or WebDAV).  To get the number of unread email in a folder you just need to 
retrieve the PR_CONTENT_UREAD property of the folder in question 
http://msdn2.microsoft.com/en-us/library/ms530684(EXCHG.10).aspx . Depending 
on the version your using the methods may differ. What you might want to do 
is download the Exchange SDK http://msdn.microsoft.com/exchange and read up 
on the Exchange API's that are relative to the version of Exchange your 
using for WebDAV do a search on propfind for EWS have a look at the 
GetFolder operation.

Cheers
Glen

"Bill Westrate"  wrote in message 
news:A6CAEEB9-E8D7-4442-9EA0-32D1EB493C7D@microsoft.com...
>I am looking for code to put in our intranet portal which will indicate the 
>number of unread (new) messages in a users exchange mailbox.  The users of 
>the intranet have logged in with valid AD credentials.  Our intranet is 
>written using ASP.NET and has some C#.  Any code examples would be greatly 
>appreciated.
>
> Thanks.
date: Wed, 30 Jan 2008 10:23:58 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us