gianlucagiacometti / roundcube-aliases Goto Github PK
View Code? Open in Web Editor NEWRoundCube plugin to set alias addresses in PostfixAdmin database
License: GNU General Public License v2.0
RoundCube plugin to set alias addresses in PostfixAdmin database
License: GNU General Public License v2.0
Hi,
Due to changes in the way roundcube access database in the 0.9 beta version, the forward plugin doesn't work anymore starting with this version.
this is related with the following changelog line of roundcube 0.9 :
Another major change is the new database abstraction. In order to add support for SQLite3 the PEAR:MDB2 dependency was dropped and Roundcube now uses the native PHP Data Objects (PDO). ATTENTION: due a small lack in the MySQL PDO driver this version of Roundcube requires PHP 5.3 when using the MySQL database.
A workaround is to replace in lib/driver/sql.php the line
$db = new rcube_mdb2($dsn, '', FALSE);
by
if (!class_exists('rcube_db')) {
$db = new rcube_mdb2($dsn, '', FALSE);
} else {
$db = rcube_db::factory($dsn, '', FALSE);
}
regards,
S.B.
Hi all,
i try the plugin on my roundcube instance, but all times i get "HTTP ERROR 500".
My steps:
cd /var/www/roundcubemail/plugins/
git checkout https://github.com/gianlucagiacometti/Roundcube-Aliases aliases
chown -R www-data:www-data aliases
cp aliases/config.inc.php.dist aliases/config.inc.php
activate the plugin
roundcube -> settings -> aliases
/var/www/roundcubemail/logs/errors
[25-Oct-2017 22:44:03 Europe/Berlin] PHP Parse error: syntax error, unexpected 'factory' (T_STRING), expecting variable (T_VARIABLE) or '$' in /var/www/sources/git/roundcubemail/plugins/aliases/lib/drivers/sql.php on line 27
Set the correct mysql login data doesn't change anything ...
I also tried to change back to 1.3.0 (git checkout tags/1.3.0).
Debian 8.9 (all updates)
PHP 5.6.30-0+deb8u1
Roundcubemail 1.3.1 [GIT 20170904.2049]
Regards
erdo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.