[RCD] Core Plugins

Chris Moules christopher at gms.lu
Wed Mar 4 12:03:22 CET 2009

Hello Ziba,

We are also working on the API branch.

What you propose is very interesting. This hits exactly where we have been looking at doing some modifications, ie the Contacts 
/ Address book.

We are also working on the jQuery side of things.

Would it be possible to get a copy of what you are working on? If we could combine efforts in some ways, it might get lots more 
done, quicker. Being able to take a look at your 'plugin-ized' core could be a great start.

We are going to be posting more patches soon.



Ziba Scott wrote:
> Hi Roundcube Plugin API Devs,
> I wanted to float a concept out there for feedback: Core plugins. 
> Hopefully I haven't missed a discussion about it elsewhere.
> A core plugin would be a plugin which is required for roundcube to
> function or must at least be replaced by a non-core plugin which serves
> the same function.  This is something Drupal has implemented with (in my
> opinion) great success.
> I believe there would be several benefits to implementing some core,
> required elements of roundcube using the plugin api:
> * The plugin api is assured to become potent and robust as it's heavily
> depended on
> * There almost no learning gap between developing/maintaining a plugin
> and a core feature.
> * This would eliminate the need for code which reads:
>     "check for a plugin to do this, otherwise do it the regular way"
> * The non-plugin code base becomes smaller and more focused
> I'm not proposing there be a concerted effort to re-factor everything as
> plugins but making some core plugins could open doors.
> In a test branch we plugin-ized a few core things and liked what we saw:
> IMAP Caching: 
> We replaced all the imap caching calls with plugin hook calls.  Then it
> was easy to implement memcache caching instead of sql caching.
> Temporary File Handling:
> We replaced all the read/write attachments to disk calls with plugin
> calls and wrote two plugins: Filesystem, to handle attachments just as
> before and Database to handle attachments in a multi-server friendly
> way.  Memcache would be another option.
> Contacts:
> We added a few hooks, re-factored rcube_contacts.php  and rcube_ldap.php
> into plugins, and then made a horde contacts plugin.
> What do you all think?
> Thanks,
> Ziba
> _______________________________________________
> List info: http://lists.roundcube.net/dev/
List info: http://lists.roundcube.net/dev/

More information about the Dev mailing list