Hello everybody,

lately in my company we’ve been working at a roundcube storage engine which 
allow roundcube to hook directly into dbmail (http://dbmail.org 
<http://dbmail.org/>) database engine bypassing all the IMAP stuff.

Everything basically is working great (you can check our work at 
https://github.com/skeyby/roundcube-dbmail 
<https://github.com/skeyby/roundcube-dbmail> if you like) right now, but we 
have a general problem I’d like to ask you about.

The problem lies in the PEAR libraries that are included in round cube’s 
composer.json.

We’ve seen roundcube is currently hooked to a (wrong) fork of Pear Mail 
mimeDecode). I say wrong because it’s a not official fork, PHP4 based, that 
doesn’t implement some of the functions that are available in official PEAR’s 
Mail mimeDecode. Furthermore the author of the fork has just published on his 
github that the fork will be soon cancelled because it’s not maintained 
anymore. In our plugin’s installation procedure we wrote instruction to change 
composer.json to map the official Pear Repository but that doesn’t seems like a 
good approach [1]… To give you some additional information Roundcube itself 
seems to work perfectly with the official PEAR Mail mimeDecode, so I really 
don’t understand why using the other one.
Yesterday we run composer update on our installation of roundcube and Pear 
NET_SMTP got updated. Major highlights of the new version is the removal of the 
old PHP4 methods. That means that Net_SMTP::_send is gone, thus if you upgrade 
PEAR roundcube stops working. Same things happens with official PEAR Mail_mime 
that went from 1.8.9 to 1.9.0 RC and broke something else (I lost the log for 
that, sorry). We solved that by changing composer.json once again but…… [2]

Last thing I’m a bit confused about the fact that the official libraries are 
uppercased and the forked ones are lower case - we didn’t hit any problem with 
that, but I must admit that I’m a bit uncomfortable with that.

Thank you for any information you can provide us on the topic.

[1]
change: "pear/mail_mime-decode": ">=1.5.5",
to: "pear-pear.php.net/Mail_mimeDecode": ">=1.5.5"
[2]
change: "pear/mail_mime": ">=1.8.9",
to: "pear/mail_mime": “1.8.9”,
add "pear-pear.php.net/Mail_Mime": "1.8.9",


-------
Andrea Brancatelli

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
Roundcube Development discussion mailing list
[email protected]
http://lists.roundcube.net/mailman/listinfo/dev

Reply via email to