LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-31-2010, 10:09 PM   #1
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Rep: Reputation: 15
integrating squirrelmail's global addressbook with roundcube 0.3.1


i installed roudcube on my centos 5.5 that also have squirrelmail 1.4.8

this squirrelmail have enabled its global addressbook. It's data is located in squirrelmail's database

how can i possibly make roundcube read squirrelmail's global address book?

i already asked in roundcube's forum but no output so far, which can be found at http://www.roundcubeforum.net/10-mis...roundcube.html
 
Old 06-01-2010, 04:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

What kind of addressbook you use for squirrelmail?
If you use the native squirrelmail's addressbook, that stores data in csv format, then I guess it can be done. I don't use roundcube, but according to this, you can transform a csv addressbook to vCard format and then insert it to roundcube.
Mind that using the csv to vCard converter, you have to replace "|" with "," and the 1st line must contain the field names, i.e.:
Quote:
Nickname,First Name,Last Name,Email,Notes
JohnDoe,John,Doe,johndoe@foo.com,whatever
Hope that helps
 
Old 06-01-2010, 07:41 AM   #3
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
it is using mysql database to store global address book
 
Old 06-01-2010, 08:19 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
In that case you have to export the mysql table to csv format and use the converter to transform it into vCard
You can use the example here to export the mysql db to csv. Since only commas are needed to separate fields in the csv file, you can use the simpler:
Code:
mysql -uexampleuser -pletmein squirrelmail -B -e “select * from \`global_abook\`;” | sed ’s/\t/,/g’ > filename.csv
Where:
exampleuser is the mysql user (default squirrelmail)
letmein is the password of the above user
Note that the above 2 must come right after the -u and -p options (specially the password), or it's not going to work
squirrelmail is the database name (default)
global_abook is the global addressbook table (default)

If you have not used the default names, change the mysql command accordingly.

Regards
 
Old 06-01-2010, 08:28 AM   #5
umarzuki
Member
 
Registered: Aug 2008
Distribution: Debian
Posts: 61

Original Poster
Rep: Reputation: 15
firstly, thanks for the detailed solution. It might be useful someday.

but what i'm looking for is a way to use squirrelmail global addressbook that can also be accessed with roundcube's global addressbook. So if the admin added a new global address, it can be viewed both from squirrelmail and roundcube.
 
Old 06-01-2010, 08:49 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Unless both applications use the same database name, tables and fields, I don't think that it's possible to have a common addressbook database for both.

Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squirrelmail's blank screen after editing motd in config.php umarzuki Linux - Server 1 06-01-2010 12:33 AM
LXer: OpenClinica Global Conference to Bring Together Global Community for Open Sourc LXer Syndicated Linux News 0 01-08-2010 10:50 AM
How to check the cpu utilization on all non global zones from Global Zone rajaniyer123 Solaris / OpenSolaris 3 10-09-2008 01:43 AM
Freebsd 6.2 roundcube, imap problem (one of them) da1 *BSD 2 11-26-2007 08:44 PM
Global Addressbook ala. Microsoft Exchange dpfletch Linux - Networking 0 07-09-2003 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration