Exchange Server TechCenter > Exchange Server Forums > Development > Parsing email message of different mailboxes/user
Ask a questionAsk a question
 

AnswerParsing email message of different mailboxes/user

  • Friday, October 30, 2009 3:18 AMvslive Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,
    First of all, thanks to EWS API team for releasing the release candidate! 
    I was successful in converting my old mapi program that parses email messages from 5 different mailboxes for my own mailbox only. My windows account has access to the remaining 4 mailboxes that I need to parse the email messages using EWS API. Can someone show the way to any documentation for how to access the remaining 4 mailboxes for reading the email messages?

    Thanks.
    Vikas - <VSLive/>
    • Edited byvslive Friday, October 30, 2009 6:44 PMthanks
    •  

Answers

  • Monday, November 02, 2009 5:41 PMvslive Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Got the answer if anyone else is searching for how to access mailbox of other other user if a service account has access to it :

    Mailbox mbox = new Mailbox("emailaddress");
    FolderId mboxFolder = new FolderId(WellKnownFolderName.Inbox, mbox);
    FindItemsResults<Item> findResults = service.FindItems( mboxFolder,  new ItemView(20));
    • Marked As Answer byvslive Monday, November 02, 2009 5:41 PM
    •  

All Replies

  • Monday, November 02, 2009 5:41 PMvslive Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Got the answer if anyone else is searching for how to access mailbox of other other user if a service account has access to it :

    Mailbox mbox = new Mailbox("emailaddress");
    FolderId mboxFolder = new FolderId(WellKnownFolderName.Inbox, mbox);
    FindItemsResults<Item> findResults = service.FindItems( mboxFolder,  new ItemView(20));
    • Marked As Answer byvslive Monday, November 02, 2009 5:41 PM
    •