X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=ImportMailMessage.php;h=ce4ea30d905b74816b063e3e43e3bb0b7a2ab56b;hb=ee1b0a9d018f5fa6cc582773ead32ff4c24a3ce9;hp=fde2a4c1642263333cfbbd8efcdd5516f521166c;hpb=dcefecd305bd62e6ecf956fd32ff29628160f2c1;p=Pman.Core diff --git a/ImportMailMessage.php b/ImportMailMessage.php index fde2a4c1..ce4ea30d 100644 --- a/ImportMailMessage.php +++ b/ImportMailMessage.php @@ -1,5 +1,7 @@ post(); return $this->jerr("not allowed"); } - function post() - - + function post($v) + { if(isset($_REQUEST['_convertToPlain'])) { require_once 'System.php'; @@ -55,6 +56,7 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle } require_once 'File/Convert.php'; $fc = new File_Convert($path, 'text/html'); + $plain = $fc->convert('text/plain'); $this->jok(file_get_contents($plain)); } @@ -62,7 +64,6 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle // Import from URL if(isset($_REQUEST['importUrl'])) { - print_r($_REQUEST);exit; $this->checkHeader($_REQUEST['importUrl']); $data = $this->convertStyle($_REQUEST['importUrl'], '', true);