Project

General

Profile

Support #663

Adding CardDAV Support To Roundcube

Added by Daniel Curtis about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Mail Server
Target version:
Start date:
09/28/2015
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

This is a short guide on adding CardDAV support for the Roundcube address book. I intend on using owncloud to provide the CardDAV backend.

Download rcmcarddav

  • Clone the rcmcarddav repository:
    cd /usr/local/www/roundcube/plugins
    git clone https://github.com/blind-coder/rcmcarddav.git
    mv rcmcarddav carddav
    cd carddav
    
  • Install php56-phar and php56-curl:
    pkg install php56-phar
    
  • Download composer and install the rcmcarddav dependencies
    curl -sS https://getcomposer.org/installer | php
    php composer.phar install
    
  • Create the initial config.inc.php:
    cp config.inc.php.dist config.inc.php
    
  • Edit the plugin config file:
    vi /usr/local/www/roundcube/plugins/carddav/config.inc.php
    
    • And add the following to the bottom of the file:
      $prefs['db_version'] = 2;
      
  • Remove all occurrences of TABLE_PREFIX from the dbinit sql file:
    sed -i '' -e 's/TABLE_PREFIX//g' /usr/local/www/roundcube/plugins/carddav/dbmigrations/0000-dbinit/postgres.sql
    
  • Initialize the database:
    psql -h pg.example.com -U roundcubeuser -W -d roundcubedb < /usr/local/www/roundcube/plugins/carddav/dbmigrations/0000-dbinit/postgres.sql
    
  • Set the ownership of the plugin to www:
    chown -R www:www /usr/local/www/roundcube/plugins/carddav/
    
  • Edit the main roundcube config file:
    vi /usr/local/www/roundcube/config/config.inc.php
    
    • And add carddav to the plugins section:
      $config['plugins'] = array(
          'archive',
          'zipdownload',
          'managesieve',
          'password',
          'carddav',
      );
      
  • Login to Roundcube and set-up your first CardDAV address book by accessing Settings -> Settings -> CardDAV

Resources

Also available in: Atom PDF