[Solved] Shared contacts in DeskApp address book

Hi at all,

I have shared the contacts of one Kopano user the several other users. I can see the contacts on DeskApp/Contacts/Contacts of UserX.

But when I write a mail and use the addressbook, I don’t see the shared contacts. In Outlook I can set a hook to use shared contacts as address book. Can I do the same in the Kopano DeskApp?

My versions:
WebApp on Win7 Prof as domain member:
3.3.0.610-25.1
Kopano Core on Univention Corporate Server:
8.3.1-35

Thanks
Ulf

Hi Ulf,

Could you check if setting ‘Disable shared contact folders’ is false?
https://documentation.kopano.io/webapp_admin_manual/config.html#disable-shared-contact-folders

Hi Marty,

yes, I can confirm, that this option is not set in webapp/config.php. The option is not available in this file. But there is a new file config.php.dpkg-dist. Perhaps the auto update options from univention don’t used the last file.

For testing I used the dpkg-dist file as config.php and change the name value. After that I have the shared contacts as addressbook for my emails

Unfortunallly the config.php is configured through Univention Config Registry:

# Warning: the value "DEFAULT_SERVER" has been set via UCR variable "kopano/webapp/config/DEFAULT_SERVER"
define("DEFAULT_SERVER","default:");

And the template under … indicates (for me) that I have only set a new UCR variable to set the next config value:

OPTIONS_PHP = {
                'DIR_CONFIG': '/etc/kopano/webapp',
                'FN_SUFFIX': '.php',
                'UCR_PREFIX': 'kopano/webapp/',
                'LINEFORMAT': 'define("%s",%s);\n',
                'RE_CFGOPTION': '^\s*define\(\"%s\",\s*'
                }

So I tried to set it, but it failed :-(

ucr set kopano/webapp/config/DISABLE_SHARED_CONTACT_FOLDERS=false
Create kopano/webapp/config/DISABLE_SHARED_CONTACT_FOLDERS
Module: kopano-cfg
Error: no closing php tag found in /etc/kopano/webapp/config.php, ucr option not added

At the moment it is functionally with the manually move of the config.php. But I want to configure it in UCS way. Do you have any hint for me to configure it through UCR variables?

Thanks
Ulf

@businesstux said in Shared contacts in DeskApp address book:

Error: no closing php tag found in /etc/kopano/webapp/config.php, ucr option not added

yes, that is a known issue with the config updater in kopano4ucs right now. To keep track of this I have now created https://jira.z-hub.io/browse/KUCS-31.

Unlike most of the other configuration files we do not use template for the Kopano stuff, which means it is safe to manually add new option to the file.

Pull requests for the config handling are welcome! The change must be implemented somewhere along the lines of https://stash.z-hub.io/projects/K4U/repos/kopano4ucs/browse/conffiles/kopano-cfg.py#225-238

Hi Felix,

I will try to understand your python script and debug a little bit on my test system. Perhaps I get an idea of your great work.

Thanks
Ulf