Juuso
2008-02-18T09:20:00Z
Hi,

We're building a plugin to Outlook. It it's supposed to use work along with GeniusConnect. Our application makes heavy use on folders (linked to the database with GC). What we're missing, is some simple automation to set predefined import options to a folder. A sort of configuration window's "Copy profile to..." function behind the scenes.
Sponsor
GeniusConnect documentation search (User Manual Downloads...)
Administrator
2008-02-18T10:06:00Z
Do you mean you need an API to call "Copy profile to..." from your software?
We do not support a public API, but it is possible to develop a custom version for you.
Please contact as, see contact page:
http://www.geniusconnect.com/articles/Contact/6/6/ 
Administrator
2008-02-18T14:36:00Z
Actually , you don’t need any special API to copy the registry profile.

GeniusConnect stores folder settings/profile in:
HKEY_CURRENT_USER\Software\Genius@Work\GeniusConnect\Folders\<Folder Entry ID>
Entry ID is an Outlook/MAPI unique identifier of an MAPI item (also a Folder).


Outlook Object: MAPIFolder
Method:GetEntryID

So if you know the folder with existing profile and the new folder,
you can just copy registry path (and all sub entries): HKEY_CURRENT_USER\Software\Genius@Work\GeniusConnect\Folders\<Existing Folder Entry ID>
TO
HKEY_CURRENT_USER\Software\Genius@Work\GeniusConnect\Folders\<New Folder Entry ID>


There are 2 exceptions:
-The key: FolderPath
Must contain full folder path of the new folder, instead of copy of the original folder path
-The key: FolderType
This will differ from exact copy only when copying profile to a different folder type (unlikely since every folder type has different set of columns)

If you are using .net, you can use this example:
http://www.codeproject.c...s/RenameRegistryKey.aspx