Roundcube Community Forum

 

Import Messages Plugin

Started by lacri, December 01, 2010, 04:55:52 AM

Previous topic - Next topic

lacri


JohnDoh has released a nice plugin to import .eml Messages

Roundcube Plugins & Patches

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

JohnDoh

good idea, i will add it. thanks.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...

leandromarques259

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