change default folder name suggestion when opening a shared folder

Hello everybody,

I am referring to the KOL manual where it says:

When opening a folder the user also has the possibility to give the folder an unique name. KOE will suggest a folder name following the schema “Username - Foldername”

In my case unfortunately it’s the opposite. Whenever I add a shared folder it will use the syntax of “Foldername - Username”. This will negateively shuffle the sorting of the existing folders and break visual appearance.

My default folder sorting on the left pane without using shared folders looks like that:

john.doe@example.tld
Posteingang
Entwürfe (Nur dieser Computer)
Gesendete Elemente
Gelöschte Elemente
Eigene Ordner
Junk E-Mail
Postausgang
RSS-Feeds
Spambox
Suchordner

Kopano Ordner
Suchordner

After adding the shared folders for incoming, sent and deleted of user Bob, my left pane looks like that:

john.doe@example.tld
Posteingang
Entwürfe (Nur dieser Computer)
Gesendete Elemente
Gelöschte Elemente
Eigene Ordner
Gelöschte Objekte - Bob
Gesendete Objekte - Bob
Junk E-Mail
Junk E-Mail - Bob
Postausgang
Posteingang - Bob
RSS-Feeds
Spambox
Suchordner

Kopano Ordner
Suchordner

This is very confusing and after changing workstation from Zarafa Client to KOL users have complaint about it. Imagine we have users that have attached up to 4 stores of other employees in their Outlook. The sorting on the left pane is a mess.

My questions are:
(1) is there any way to fix the default behaviour of suggested folder name? The manual said that is uses syntax “Username - Foldername” but obviously this is not the case on our system.

(2) is there a general best practice how to remedy this schortcoming?

Hi micro,

this was changed in https://jira.kopano.io/browse/KOE-56, but the manual was not updated.

See also comments of https://jira.kopano.io/browse/KOE-116:

It can be set using the registry value 'Shared Folders\DefaultFolderNameFormat', or through the plugin debugger. The default value is '%foldername% - %username%', which replicates the old situation.

Specifically for the forum request, this would be '%foldername% - %displayname%'

Manfred

@micro said in change default folder name suggestion when opening a shared folder:

In my case unfortunately it’s the opposite

i"ve just now corrected this in the manual. it was changed relatively early in development and it seems i forgot to update the documentation.

Hello Manfred and Felix,

thanks a lot for clarification and your efforts. I will try it later …

I changed the default behaviour by using the “PluginDebugger.exe” which I found inside the installation directory “C:\program files\kopano\Kopano OL Extension”. This works fine, but: how can I have the desired setting %username% - %foldername% applied to ALL our workstations across the company? I don’t want to set this on each workstation, I’d prefer a global configuration.

How can we set such a global configuration?

@micro said in change default folder name suggestion when opening a shared folder:

How can we set such a global configuration?

since this is pure client side code there is no way to enforce this from the server. what you could do however is to set this option through a reg file and apply the reg file in your logon scripts.

can you provide some more information about this .reg file? I already tried through Windows Registry, but without success.

Something like the following will work (with your desired template set:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Kopano\Kopano OL Extension\SharedFolders]
@="SuppressHierarchyChanges,AllowImpersonate"
"DefaultFolderNameFormat"="%foldername% - %username%"

Hi Felix,

I did try that before manually with the registry editor but it didn’t work because I used HKLM\Software\Kopano… in your example it works within HKCU key. But I’m not sure if this will take effect when different users logon to a workstation. Is it possible to use this setting under HKLM, too?

It would be nice if someone could add your example to the manual. (take care for the missing space in the name SharedFolders, the manual shows it the other way as it is displayed in PluginDebugger.

@micro said in change default folder name suggestion when opening a shared folder:

Is it possible to use this setting under HKLM, too?

I’m not sure. I have to check with the developer for this.

Had a quick chat with the developer. KOE already as capable of retrieving settings from hklm, but this only happens if there is no value set in hklu. In addition to this it would not fallback if the value in hklu is an empty string (which happens if settings were unset through the plugin debugger).

So my guess would be is that you applied it to hklm, which there were still settings in hklu.

will that work on our business productional environment where I run kopano-server 8.5.9.0-0 ? I guess it should because I would only update the OLE extension on my own Windows client workstation, right ?