Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: lacri on December 01, 2010, 04:55:52 AM

Title: Import Messages Plugin
Post by: lacri on December 01, 2010, 04:55:52 AM

JohnDoh has released a nice plugin to import .eml Messages

Roundcube Plugins & Patches (http://www.tehinterweb.co.uk/roundcube/#piimportmessages)

thx John for this ...

i have a little notice for optimizing in importmessages.php
on line 86, 96 and line 122 check the script the file type

if (preg_match('/\.zip$/', $_FILES['_messageupload']['name'])) {
if (preg_match('/\.eml$/', $file)) {
else if (preg_match('/\.eml$/', $_FILES['_messageupload']['name'])) {

with this preg_match can only import files in lowercase

change to ignore lower or upercase file type


if (preg_match('/\.zip$/i', $_FILES['_messageupload']['name'])) {
if (preg_match('/\.eml$/i', $file)) {
else if (preg_match('/\.eml$/i', $_FILES['_messageupload']['name'])) {

Many Greetz
Title: Import Messages Plugin
Post by: JohnDoh on December 01, 2010, 08:02:50 AM
good idea, i will add it. thanks.
Title: Re: Import Messages Plugin
Post by: leandromarques259 on April 05, 2013, 02:14:16 PM
good afternoon.

I wonder where I can download the plugin to import eml messages to Roundcube and how to install via command line in Linux.

thank you