Project

General

Profile

Support #663

Adding CardDAV Support To Roundcube

Added by Daniel Curtis over 3 years ago. Updated over 3 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

History

#1 Updated by Daniel Curtis over 3 years ago

  • Description updated (diff)
  • Status changed from New to In Progress

#2 Updated by Daniel Curtis over 3 years ago

  • Description updated (diff)

#3 Updated by Daniel Curtis over 3 years ago

  • Description updated (diff)
  • % Done changed from 0 to 50

#4 Updated by Daniel Curtis over 3 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

#5 Updated by Daniel Curtis over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF