Determine Language of Outlook folders?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

I need to know if I can look for "Inbox" or as in Swedish "Inkorgen"... or
can one asume I that the Inbox has a special index if I loop thru the
folders?

/Lars Netzel
 
Lars,
The "easiest" way to get the inbox (with the OOM - Outlook Object Model) is
to use Namespace.GetDefaultFolder(olDefaultFolders.OlFolderInbox).

Something like:

Imports Outlook = Microsoft.Office.Interop.Outlook

Dim application As New Outlook.Application
Dim ns As Outlook.NameSpace = application.GetNamespace("MAPI")
Dim inbox As Outlook.MAPIFolder =
ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)


Hope this helps
Jay

|I need to know if I can look for "Inbox" or as in Swedish "Inkorgen"... or
| can one asume I that the Inbox has a special index if I loop thru the
| folders?
|
| /Lars Netzel
|
|
 
It sort of help but when you have MAPI solution you have to have a Personal
Folders too and then the Defrautl inbox for some reason ins the Inbox in the
Personal Folders (which is not the one where new emails go... but I have
solved it with hardcode and a preferenses thing in the program where one can
give the exakt name for the folder to look in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top