X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fmsgimport.sh;h=845c585e19a7a7f9cba667308eb2bbd3a48b9064;hb=48e244a464574aa732ef5ab3fe759f1e05665b3d;hp=74dc816173c3483a1ca7f9fba96672f481824804;hpb=0049b44955bd98230dd609e8dd84bde1747eb278;p=roundcube.git diff --git a/bin/msgimport.sh b/bin/msgimport.sh index 74dc816..845c585 100755 --- a/bin/msgimport.sh +++ b/bin/msgimport.sh @@ -79,7 +79,7 @@ if ($IMAP->connect($host, $args['user'], $args['pass'], $imap_port, $imap_ssl)) $fp = fopen($args['file'], 'r'); while (($line = fgets($fp)) !== false) { - if (preg_match('/^From\s+/', $line) && $lastline == '') + if (preg_match('/^From\s+-/', $line) && $lastline == '') { if (!empty($message)) {