View Single Post
  #1  
Old May 13th 09, 02:30 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook add-in: How to find localized name of the "Junk e-mail" folder

NameSpace.GetDefaultFolder(OlDefaultFolders.olFold erJunk) will work for any
Outlook version that has a Junk folder. That's language independent.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


wrote in message
...
Hi,
I am writing an C++COM add-in that will add improved spam filtering. I
have a toolbar with a "Mark as spam" button for this purpose. How do I
find out what is the name of the folder that acts as Junk e-mail
folder. I presume that the actual name and path to this folder can
differ based on the office localization and/or user language settings
and/or account settings ... It might as well be that no such folder
exists and it needs to be created (i.e. in pre-Office 2003 versions)

Please help.

Many thanks


Ads