ImportMailMessage.php
[Pman.Core] / ImportMailMessage.php
index 0aea099..8dbe779 100644 (file)
@@ -8,14 +8,17 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
 {
     function getAuth()
     {
+        
         if (HTML_FlexyFramework::get()->cli) {
             return true;
         }
+        
         $this->authUser = $this->getAuthUser();
         if (!$this->authUser) {
             return false;
         }
-        return true;
+
+        return true;        
     }
     
     function get($v, $opts=array())
@@ -27,8 +30,11 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
     
     function post($v)
     {   
+        
         if(isset($_REQUEST['_convertToPlain']))
         {
+            var_dump('die');exit;
+            
             require_once 'System.php';
             $tmpdir  = System::mktemp("-d convertPlain");
             $path = $tmpdir . '/' . time() . '.html';
@@ -57,8 +63,6 @@ class Pman_Core_ImportMailMessage extends Pman_Core_ConvertStyle
             require_once 'File/Convert.php';
             $fc = new File_Convert($path, 'text/html');
             
-            print_r($fc);exit;
-            
             $plain = $fc->convert('text/plain');
             $this->jok(file_get_contents($plain));
         }