X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=ImportMailMessage.php;h=ce4ea30d905b74816b063e3e43e3bb0b7a2ab56b;hb=81f602e2c25f2b9baf5c0a4b56e4ec614f410909;hp=2e172077920cd478de1f32c6aa7b91723678f08c;hpb=d3a2d4f68cb275d6ea5fea2128883b63aea1434a;p=Pman.Core diff --git a/ImportMailMessage.php b/ImportMailMessage.php index 2e172077..ce4ea30d 100644 --- a/ImportMailMessage.php +++ b/ImportMailMessage.php @@ -18,14 +18,14 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle return true; } - function get() + function get($v, $opts=array()) { $this->post(); return $this->jerr("not allowed"); } - function post() + function post($v) { if(isset($_REQUEST['_convertToPlain'])) { @@ -56,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)); }