Roundcube Community Forum

 

[Update] Squirrelmail usercopy - database support

Started by jingo, December 01, 2009, 09:22:28 AM

Previous topic - Next topic

jingo

Hi All

I have updated the squirrelmail_usercopy plugin to support copying userpreference and addressbook from squirrelmail database.

Added some fields in config. Driver should be set to 'sql' to use the database backend.

Please test and apply.

Regards

Jingo

PS: Off course remove ".txt" extension from the attached files.

PPS: Also sent to the dev-list: RoundCube Mailing Lists

lacri

thanks for this ;)

i think many users need this to port users from old unstylish Squirrelmail to great RoundCube !!!

jingo

You're welcome.

Hopefully someone will review and test my work and commit it to svn.

Granada

I am just about to migrate thousands of accounts from Squirrelmail to Roundcube and did some testing with the script.
It works fine with RC 0.4b after removing line 122 from the script. The field "note" no longer exists in RC.

Regards
Ruediger

osos

The note field is missing due to very limited adressbook of RC.

I use this extended addressbook patch:
#1486377 (extended addressbook patch) ? Roundcube Webmail

Also an updated version of the squirrelmail_usercopy is at:
#1486517 (squirrelmail_usercopy plugin - multiple identity and Database support) ? Roundcube Webmail

Granada

erm... quite inconsistent! Would be nice to know whether an extended address book will find it's way into official releases of Roundcube or not. I'd like to have more fields, you can leave them empty if unused. And when one knows about the extended address book the squirrelmail_usercopy-plugin could easily be adopted. The current state is neither fish nor fowl. :rolleyes:

Regards
Ruediger

osos

Quote from: Granada;27398erm... quite inconsistent! Would be nice to know whether an extended address book will find it's way into official releases of Roundcube or not.

I'm quite sure an extended address book will find it's way. The question is when and which.

See the Roadmap ? Roundcube Webmail.

I would very much like the RC to at least have identical addressbook with squirrelmail by 0.4-stable. Further extension can wait until 0.5 or later.

Granada

I just want to be sure to not have to edit the code of an existing plugin (here: squirrelmail_usercopy) to get it to work with whatever version of RC we use. Setting the correct variables in the according config file must do the job right.
The current version of squirrelmail_usercopy does not run out of the box ...

Regards
Ruediger

osos

#8
Quote from: Granada;27400I just want to be sure to not have to edit the code of an existing plugin (here: squirrelmail_usercopy) to get it to work with whatever version of RC we use. Setting the correct variables in the according config file must do the job right.
The current version of squirrelmail_usercopy does not run out of the box ...

Regards
Ruediger

Good point. Please put your comments on this issue in the bugreport.
#1486517 (squirrelmail_usercopy plugin - multiple identity and Database support) ? Roundcube Webmail

Hopefully the squirrelmail_usercopy update will be ready for 0.4-stable.

Edit: Actually looking at the code, the squirrelmail plugin should work even if not using an extended addressbook. Unfortunately I don't have the time to test it at the moment.

SKaero

A better address book should be part of RoundCube 0.5 beta as part of the "VCard data for rich contact information".

Granada

Quote from: osos;27401Edit: Actually looking at the code, the squirrelmail plugin should work even if not using an extended addressbook. Unfortunately I don't have the time to test it at the moment.

You're right! V1.2 works without removing the line that defines the non existing filed 'note' in line 164.

Regards
Ruediger

rcorrigal

Any way it can be updated to support Squirrelmail's "Address Book Grouping and Pagination" plugin so it can bring any pre-existing groups over as well?

v2mody

i have version .3.1 and i wonder how can i use this plugin , i think i am using older version of this plugin which came by default with roundcube dir

what i want to do is just move all users .abook files to roundcube address book ? how to do that???????????