1

Topic: Dropping Roundcube native address book (because carddav works) risky?

==== Required information ====
- iRedMail version: 0.9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MYSQL
- Web server (Apache or Nginx): NGINGX
- Linux/BSD distribution name and version: CENTOS 6
- Related log if you're reporting an issue: 
====

Hi,
Now that carddav is working, i think i can drop the roundcubes native address book.
is mysql the only way to drop it? (afraid to do something wrong and mess up the db) quite sensitive.
have pinpointed the contacts table in roundcube. So do i drop the entire contacts ?
afraid to do so. please help me!

thanks
kevin

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Dropping Roundcube native address book (because carddav works) risky?

*) Do you mean Roundcube 'carddav' plugin? What's your carddav server?
*) iRedMail doesn't enable global address book in Roundcube with SQL backends, so about "native address book", i guess you mean personal address book. Instead of drop it, i suggest you simply disable it in Roundcube config file.

$config['autocomplete_addressbooks'] = array();

3

Re: Dropping Roundcube native address book (because carddav works) risky?

superinterstellar, I don't think dropping the SQL tables is a good idea but disabling it in config worked for me, I then set the respective CardDav book as the primary and automatically added contacts got added there and there was no access to the SQL one, you could clear the table but removing it would probably cause issues.
Although the code that zhb exampled is wrong - it'd only stop the book from being added to the autocomplete ajax call,
you should do something like:

$config['address_book_type']         = '';
$config['default_addressbook']       = 'carddav_1';
$config['autocomplete_addressbooks'] = array('carddav_1');

first line disabling built in personal books,
second changing the default to YOUR configured CardDav book,
third allowing autocomplete from the CardDav book.
You'd need to replace carddav_1 with the full identifier of the Book that you create through the CardDav plugin in config.

4 (edited by superinterstellar 2015-06-04 13:45:34)

Re: Dropping Roundcube native address book (because carddav works) risky?

actually yeah, thanks for confirming that. Thanks to Zhang and 7t3chguy
yes .

$config['address_book_type']         = '';

The code above did deactivate the default addressbook that roundcube comes with. Thats good

About cardav_1 = could you give me an example of a full identifier of the Book? How would the link look?
I am using Roundcube CardDAV plugin. I have already pointed it configured to the correct addressbook link in the settings.

My CardDAV server is SOGo.

5

Re: Dropping Roundcube native address book (because carddav works) risky?

To find the full identifier, you most likely will need to use Developer Tools in your browser to see what it has been named;
Go into Address Books in Roundcube
Open Developer Tools
Inspect one of the "Groups" buttons (the one you want to use as the default)
You'll see something like:

<a href="./?_task=addressbook&amp;_source=carddav_3" rel="carddav_3" onclick="return rcmail.command('list','carddav_3',this)">Contacts</a>

the rel= attribute will give you the name of it, and I've just noticed that for some reason mine is still default even though the id is different - weird xD

6

Re: Dropping Roundcube native address book (because carddav works) risky?

ah okay. interesting. will do that later today.
btw, do i need to specify a default_addressbook?
cant it automatically use the carddav details from SOGo?
will read more on this.

7

Re: Dropping Roundcube native address book (because carddav works) risky?

Default is just to tell roundcube which address book will be used by default. The plugin you are using must be configured to provide it, to roundcube the carddav book is no different than the regular one but managed by the plugin, by saying it's default, the add to contacts button will add to the carddav

8

Re: Dropping Roundcube native address book (because carddav works) risky?

If there is only one, then roundcube will probably assume that it is the default

9

Re: Dropping Roundcube native address book (because carddav works) risky?

i have the carddav plugin in my setting (with the same config settings that works on my phone)
its only on roundcube where the carddav data is not showing up in the addressbook.
guess i'll have to email the author. the link is below.

https://github.com/christian-putzke/Rou … ter/README

will contact him and ask him, might get a better understanding on why is this not working. it should work.

10

Re: Dropping Roundcube native address book (because carddav works) risky?

I hope you realise that specific carddav plugin hasn't been developed in over a year.
Use this,
https://github.com/blind-coder/rcmcarddav

11

Re: Dropping Roundcube native address book (because carddav works) risky?

ah ok!
thanks
i picked it from the roundcube repository. someone needs to update the roundcube repository and remove outdated plugins and put up relevant ones.
thanks 7t3chguy. smile

12

Re: Dropping Roundcube native address book (because carddav works) risky?

hi i just tried to install it using the instruction listed on the install page:-
https://github.com/blind-coder/rcmcardd … er/INSTALL

The plugin doesnt work(skipped step 5)Is the step 5 important?

5. Make sure that the file and directory ownership match the user which is used
to run your web server, e.g.:
    chown -R wwwrun  roundcubemail/plugins/carddav
    chgrp -R nogroup roundcubemail/plugins/carddav

I am not sure what is the chown and chgrp (yeah i am a bit of noob here)
Could someone tell me how do I get by this. I usually run as root.

13 (edited by superinterstellar 2015-06-05 09:03:39)

Re: Dropping Roundcube native address book (because carddav works) risky?

i got rcmcarddav installed and it accepts my configuration. and i have it selected on activate
except when i go addressbook and try to make a search i get nothing.
any idea why?

14

Re: Dropping Roundcube native address book (because carddav works) risky?

further more, my interval is set to 5mins.
no idea why...

15

Re: Dropping Roundcube native address book (because carddav works) risky?

need advise on how to troubleshoot.

16

Re: Dropping Roundcube native address book (because carddav works) risky?

Ask advice on his GitHub page. This isn't shipped with iRedMail, its 3rd party.

17

Re: Dropping Roundcube native address book (because carddav works) risky?

i did. already spoke to the author.
suppose to have a log in roundcube/logs/carddav
i cant seem to have it? how do we turn on loggings?  any idea?
or will just look around.
thanks

18

Re: Dropping Roundcube native address book (because carddav works) risky?

i just tried this

$config['debug_level'] = 1;

in the config.inc.php