phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: email/inc class.boaction.inc.php, 1.17.2.2, 1.17


From: Dave Hall <address@hidden>
Subject: [Phpgroupware-cvs] CVS: email/inc class.boaction.inc.php, 1.17.2.2, 1.17.2.3
Date: Fri, 12 Sep 2003 22:49:17 -0400

Update of /cvsroot/phpgroupware/email/inc
In directory subversions:/tmp/cvs-serv7255

Modified Files:
      Tag: Version-0_9_16-branch
        class.boaction.inc.php 
Log Message:
committed wrong code - rollback

Index: class.boaction.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/email/inc/class.boaction.inc.php,v
retrieving revision 1.17.2.2
retrieving revision 1.17.2.3
diff -C2 -r1.17.2.2 -r1.17.2.3
*** class.boaction.inc.php      13 Sep 2003 01:46:14 -0000      1.17.2.2
--- class.boaction.inc.php      13 Sep 2003 02:49:14 -0000      1.17.2.3
***************
*** 1075,1079 ****
                                $this->output_data = 
$GLOBALS['phpgw']->msg->phpgw_fetchbody($msgball);
                                $size = strlen($this->output_data);
-                               $mime = 
$this->get_real_mime($GLOBALS['phpgw']->msg->get_arg_value('name'), 
$this->output_data);
                                
$this->browser->content_header($GLOBALS['phpgw']->msg->get_arg_value('name'), 
$mime, $size);
                                echo $this->output_data;
--- 1075,1078 ----
***************
*** 1157,1185 ****
                        $GLOBALS['phpgw']->common->phpgw_exit(False);
                }
- 
-               /**
-               * Get the real mime type of an attachment - still not 100% 
reliable, but lets see
-               *
-               * Note this will soon be moved to the api soon - but here as an 
interim
-               * solution.  Also this documentation is in phpdoc - the new 
phpgw standard
-               *
-               * @author skwashd
-               * @param string $attach_name name of the attachment
-               * @param string $data attachment data
-               * @return string mime type for attachment
-               */
-               function get_real_mimetype($attach_name, $attach_data)
-               {
-                       $mime_magic = createObject('email.mime_magic');
- 
-                       $mime_type = $mime_magic->filename2mime($attach_name);
-                       if($mime_type == 'application/octet-stream')//lets try 
another way
-                       {
-                               $mime_type = 
$mime_magic->analyze_data($attach_data)
-                       }
-                       return $mime_type;
-               }
- 
- 
        }
  ?>
--- 1156,1159 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]