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