Using webDAV, how can we tell a folder is a specific System Folder like Inbox
? I'm asking this related to different languages (e.g. in Portuguese, Inbox =
Caixa de Entrada).. Also, I think this is not direct related to browser
locale, as if I change from English to Portuguese, my Inbox still show as
Inbox...
- Luciano

Signature
- Luciano Resende
Henning Krause [MVP] - 18 Apr 2006 19:01 GMT
Hello Luciano,
you can get the correct url by issuing a PROPFIND on the base folder of your
mailbox querying the properties mentioned in this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch
2k_getting_well-known_mailbox_folder_urls.asp
Greetings,
Henning Krause
> Using webDAV, how can we tell a folder is a specific System Folder like
> Inbox
[quoted text clipped - 5 lines]
>
> - Luciano
news.microsoft.com - 20 Apr 2006 08:48 GMT
You can use also code below:
'1 Way - For current user (for example, current session user for asp,
asp.net etc.)
Set oPerson = Createobject("CDO.Person")
Set oADsInfo = CreateObject("ADSystemInfo")
oPerson.DataSource.Open "LDAP://" & oADsInfo.UserName
Set oADsInfo = Nothing
'------------
'2 Way -For some user (your script must be executed with Administrator or
Exchange Domain Servers groups priveleges!)
sUserMail = "user@exchange.com" ' example account
Set oPerson = Createobject("CDO.Person")
oPerson.DataSource.Open "mailto:" & sUserMail
Set iMbx = oPerson.GetInterface("IMailbox")
sFolderName = iMbx.Inbox ' or iMbx.SentItems, iMbx.Outbox, iMbx.Tasks,
iMbx.Calendar
'If You need to know full path for some user folder You can use this code:
sUserAlias = Split(sUserMail, "@")(0)
sDomainName = Split(sUserMail, "@")(1)
sExchPath = "file://./backofficestorage/" & sDomainName & "/MBX/" &
sUserAlias & "/" & sFolderName
' or
sExchPath = "http://" & sDomainName & "/exchange/" & sUserAlias & "/" &
sFolderName
Enjoy!
Alexander.
> Using webDAV, how can we tell a folder is a specific System Folder like
> Inbox
[quoted text clipped - 5 lines]
>
> - Luciano