forked from extern/egroupware
logging while TNEF decoding fails
This commit is contained in:
parent
cd30e8bee1
commit
0a34fceee2
@ -4922,8 +4922,14 @@ class emailadmin_imapbase
|
||||
*/
|
||||
public function tnef_decoder( $data )
|
||||
{
|
||||
if (class_exists('Horde_Compress',true)==false) return false;
|
||||
|
||||
foreach(array('Horde_Compress', 'Horde_Icalendar', 'Horde_Mapi') as $class)
|
||||
{
|
||||
if (!class_exists($class))
|
||||
{
|
||||
error_log(__METHOD__."() missing required PEAR package $class --> aborting");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$parts_obj = new Horde_Mime_part;
|
||||
$parts_obj->setType('multipart/mixed');
|
||||
|
||||
@ -4931,7 +4937,10 @@ class emailadmin_imapbase
|
||||
try
|
||||
{
|
||||
$tnef_data = $tnef_object->decompress($data);
|
||||
} catch (Horde_Exception $ex) {
|
||||
}
|
||||
catch (Horde_Exception $ex)
|
||||
{
|
||||
error_log(__METHOD__."() ".$ex->getMessage().' --> aborting');
|
||||
return false;
|
||||
}
|
||||
if (is_array($tnef_data))
|
||||
|
@ -85,7 +85,7 @@ $setup_info['emailadmin']['check_install'] = array(
|
||||
'from' => 'EMailAdmin',
|
||||
'version' => '1.3.0',
|
||||
),
|
||||
// next 3 are required for TNEF support
|
||||
// next 4 are required for TNEF support
|
||||
'pear.horde.org/Horde_Compress' => array(
|
||||
'func' => 'pear_check',
|
||||
'from' => 'EMailAdmin',
|
||||
@ -101,5 +101,9 @@ $setup_info['emailadmin']['check_install'] = array(
|
||||
'from' => 'EMailAdmin',
|
||||
'version' => '1.0.0',
|
||||
),
|
||||
'bcmath' => array(
|
||||
'func' => 'extension_check',
|
||||
'from' => 'EMailAdmin',
|
||||
),
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user