Ticket #1483937 (new Feature Requests)

Opened 2 years ago

Last modified 4 weeks ago

Backend Translation

Reported by: rem5 Owned by:
Priority: 3 Milestone: later
Component: IMAP connection Version: later
Severity: normal Keywords:
Cc:

Description

I have been looking into integrating roundcube directly to a dbmail database. I have spent a good amount of time looking through the code for an easy way to use a class library for the dbmail part, however it seems IMAP is coded into everything. What I suggest is creating a translation class.

This class would look at the config and decide what backend to use, IMAP or DBMAIL (or others). An IMAP and DBMAIL class would extend this translation class.

ex.

$type = $config['type'];

$rc = new $type; //translate

$rc->init_dbmail($db,$host,$user,$pass,$port); //initialize choice backend

$rc->call_user_function_here();

class roundcube 
{
     function get(){}
     function headers(){}
     function delete(){}
//you get the idea
}

class dbmail extends roundcube
{
     //dbmail specific functionality
}

This is just an example, someone with more experience with the code should suggest the method.

Change History

Note: See TracTickets for help on using tickets.