Roundcube: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
m (Text replacement - "<source" to "<syntaxhighlight")
Line 6: Line 6:


/etc/roundcube/config.inc.php:
/etc/roundcube/config.inc.php:
<source lang=php>
<syntaxhighlight lang=php>
...
...
<// List of active plugins (in plugins/ directory)
<// List of active plugins (in plugins/ directory)
Line 19: Line 19:


/usr/share/roundcube/plugins/carddav/config.inc.php
/usr/share/roundcube/plugins/carddav/config.inc.php
<source lang=php>
<syntaxhighlight lang=php>
...
...
$prefs['OwnCloud-Contacts'] = array(
$prefs['OwnCloud-Contacts'] = array(

Revision as of 15:23, 25 November 2021

Kategorie:Web Kategorie:Mail

Automatic import carddav from Owncloud

Enable carddav:

/etc/roundcube/config.inc.php: <syntaxhighlight lang=php> ... <// List of active plugins (in plugins/ directory) $config['plugins'] = array( 'carddav', // <---- Enable carddav 'archive', ); ... </source>

This imports automagically all Owncloud contacts from the addressbook "contacts" into roundcube carddav:

/usr/share/roundcube/plugins/carddav/config.inc.php <syntaxhighlight lang=php> ... $prefs['OwnCloud-Contacts'] = array(

       // required attributes
       'name'         =>  'Cloud->contacts->',
       'username'     =>  '%u', 
       'password'     =>  '%p',
       'url'          =>  'https://$cloudserver/remote.php/carddav/addressbooks/%u/contacts/',
       // optional attributes
       'active'       =>  true,
       'readonly'     =>  false,
       'refresh_time' => '01:00:00',
       'preemptive_auth' => 1,
       // attributes that are fixed (i.e., not editable by the user) and
       // auto-updated for this preset
       'fixed'        =>  array('name', 'active', ),
       // hide this preset from CalDAV preferences section so users can't even
       // see it
       'hide' => false,

); </source>