Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
I am using Exchange Server 2007 SP3
 
and I am able to connect exchange web service using following code
    ExchangeServiceBinding esb = new ExchangeServiceBinding();
    esb.RequestServerVersionValue = new RequestServerVersion();
    esb.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2007_SP1;
    esb.Credentials = new NetworkCredential("<user_id>", "<password>", "<domain>");
    esb.Url = @"https://<server_fqdn>/ews/Exchange.asmx";</server_fqdn></domain></password></user_id>
 
I am looking for code to read only unread emails.
 
Could you please help me?
Posted 1-Sep-11 6:42am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Dan wrote in his msdn blog for unread mail using ExchangeServiceBinding. Plz refer at: http://blogs.msdn.com/b/webdav_101/archive/2007/11/29/ews-csharp-list-unread-inbox-messages-using-a-restriction.aspx[^]
  Permalink  
Comments
vangapallynaveen at 30-Jul-12 8:07am
   
Good link
GanesanSenthilvel at 30-Jul-12 11:22am
   
Thanks
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Well as you are new in Exchange Web Services ( EWS ) , I will suggest you to read this series of articles form Brij [ Check For Microsoft Exchange Section ] .
Microsoft Exchange[^]
 
If you check the Second Article,
Programming With Exchange Server 2007 (EWS) - Part 2[^], there is a section "Getting the Count of the Unread Items in a Specified Folder"
Which will do the job for you.
 
Hope this will help !
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 175
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 30 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100