Author Topic: Import Messages Plugin  (Read 10386 times)

Offline lacri

  • Full Member
  • ***
  • Posts: 179
    • http://www.php-lexikon.de
Import Messages Plugin
« on: December 01, 2010, 04:55:52 AM »

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

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
Import Messages Plugin
« Reply #1 on: December 01, 2010, 08:02:50 AM »
good idea, i will add it. thanks.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline leandromarques259

  • Newbie
  • *
  • Posts: 1
Re: Import Messages Plugin
« Reply #2 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