Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Exchange Server / Applications / October 2006

Tip: Looking for answers? Try searching our database.

retrieve folder names of a Mailbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alok - 09 Oct 2006 11:44 GMT
Hello friends!

I am working on vc++.
I want to retrieve programatically the folder names of a mailbox of
exchange server.
Is there any way to retrieve these folders?

I want to retrieve those bocz the Exchange server may be installed on a
computer having a language other than english.

Plz Help..
oscar.y.kuo@gmail.com - 09 Oct 2006 21:36 GMT
Hi Alok,

If you have the email address of a person you can do this by:

   std::string email_address = "test@test.com";

   IDataSourcePtr datasource;
   IPersonPtr person(__uuidof(Person));
   person->get_DataSource(&datasource);

   // open the person identified by the given email
   ret = datasource->Open(
       _bstr_t(("mailto:"+email_address).c_str()),
       0, adModeRead, adFailIfNotExists, adOpenSource, "", "");

   BSTR basefolder;
   IMailboxPtr mailbox = person->GetInterface(_T("IMailBox"));
   mailbox->get_BaseFolder(&basefolder);

Check out IMailBox interface for attributes that gives you other folder
URL

Cheers,
Oscar

> Hello friends!
>
[quoted text clipped - 7 lines]
>
> Plz Help..
 
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.