X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=ImportMailMessage.php;h=ce4ea30d905b74816b063e3e43e3bb0b7a2ab56b;hp=2e172077920cd478de1f32c6aa7b91723678f08c;hb=refs%2Fheads%2Fwip_alan_T5884_add_photo_to_report;hpb=d3a2d4f68cb275d6ea5fea2128883b63aea1434a 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)); }