klavman / roundcube-export-contacts

Export roundcube contacts in vcard format from mysql database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

roundcube-export-contacts

Export roundcube contacts in vcard format from mysql database.

Saves all exported data from "contacts" table, "vcard" column to files like './out/{EMAIL}_{USERID}.vcf'

For example:

./out/myemail@localhost_1.vcf  # active vcards
./out/myemail@localhost_1_deleted.vcf  # deleted vcards

where:

  • myemail@localhost - data from 'users.username'
  • 1 - data from 'users.user_id'
  • deleted - deleted vcards (contacts.del = 1)

Installation

Using virtual env:

# create venv
make venv
# enable venv
source ./venv/bin/activate
# install requirements
make init
# run
./roundcube-export-contacts.py -h

About

Export roundcube contacts in vcard format from mysql database


Languages

Language:Python 95.6%Language:Makefile 4.4%