exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CDO.IMailbox properties

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications
Author Message
steph-cpwr



Joined: 08 Oct 2007
Posts: 1

PostPosted: Mon Oct 08, 2007 3:54 am    Post subject: CDO.IMailbox properties Reply with quote

Hi,

On one of the exchange servers the iMailBox object seems not to be populated
properly. Except the .RootFolder property none of the other properties is
populated.
What I do is something like:
--
Dim oPerson As CDO.Person
Dim oInfo As New ADSystemInfo
Dim oMailbox As IMailbox
Dim oResAddr As CDO.Addressee

Set oPerson = New CDO.Person
Set oResAddr = New CDO.Addressee
oResAddr.EmailAddress = Trim(email.Text)

If oResAddr.CheckName("LDAP://" & oInfo.DomainDNSName) Then
oPerson.DataSource.Open oResAddr.DirURL

Set oMailbox = oPerson.GetInterface("IMailbox")
end if
--

Now the properties are looking like:

======= ADSystemInfo object =======

oInfo.ComputerName: CN=MAIL-IM,CN=Computers,DC=pezza,DC=com
oInfo.DomainDNSName: pezza.com
oInfo.DomainShortName: PEZZA
oInfo.ForestDNSName: pezza.com
oInfo.IsNativeMode: True
oInfo.PDCRoleOwner: CN=NTDS
Settings,CN=TEST-W2K,CN=Servers,CN=Default-irst-Site-Name,CN=Sites,CN=Configuration,DC=pezza,DC=com
oInfo.SchemaRoleOwner: CN=NTDS
Settings,CN=TEST-2K,CN=Servers,CN=Default-First-Site-ame,CN=Sites,CN=Configuration,DC=pezza,DC=com
oInfo.SiteName: Default-First-Site-Name
oInfo.UserName: CN=Administrator,CN=Users,DC=pezza,DC=com
===== CDO.Person ======
oPerson.email: test1@pezza.com
oMailbox.BaseFolder:
oMailbox.Calendar:
oMailbox.Contacts:
oMailbox.DeletedItems:
oMailbox.Drafts:
oMailbox.Inbox:
oMailbox.Journal:
oMailbox.Notes:
oMailbox.Outbox:
oMailbox.RootFolder:
file://./backofficestorage/pezza.com/MBX/test1/NON_IPM_SUBTREE
oMailbox.SentItems:
oMailbox.Tasks:


Has anyone an idea why the properties are empty? On other exchange servers
it is working fine.

Best Regards
Stephan

Archived from group: microsoft>public>exchange>applications
Back to top
View user's profile Send private message
steph-cpwr



Joined: 08 Oct 2007
Posts: 1

PostPosted: Mon Oct 08, 2007 6:45 am    Post subject: RE: CDO.IMailbox properties Reply with quote

It turns out that the user executing the program has no access to the
specified mailbox. Giving the user access to the specified mailbox will
populate the properties.

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
How to read Outlook Properties Hello: How could I get the first and last name of an Outlook Alias via code using ASP.NET? Thanks!

How to get Exchange Specific MAPI properties? Hi, Question seems to be very silly but need help as not getting how to!!! I am trying to get Exchange Server PUBLIC FOLDER information using MAPI in C++. I got some fields like for each public folders. But how to know wha

Accessing extended mapi properties in managed smtp event sin I have a managed smtp event sink registered for event. I need some pointers on how to access the extended mapi properties. I'm pretty sure its through the but can't seem to figure out exactly how. Sample code would h

Mapping GAL entry to AD properties I have an app that runs in Outlook and allows the user to retrieve recipients via the GAL. So far I have been using the EntryID as a unique identifier for a mailbox; however, I gather this property is not static so I'm wondering how best to map a GAL rec

View mailbox properties in ADUC on DC where it is not an Exc In enviroment (all 2003 system) where I've more Domain Controller server separate from Exchange server, I view mailbox properties in "Active Directory User and Computers" (ADUC) opened on Exchange Server, therefore if I open "Active Directory User and Com
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group