mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-05 09:32:08 +02:00
extending check install for optional tnef/ytnef check used by FeLaMiMail to decode winmail.dat files/attachments; Provided by HJTappe; Adding check for PEAR::MailMime and PEAR::Mail_mimeDecode used by FeLaMiMail to import message/rfc files to a mailbox
This commit is contained in:
parent
90f975ff85
commit
ac431bfbcf
@ -671,6 +671,36 @@ function mk_value($value)
|
|||||||
return (strtolower($matches[2]) == 'm' ? 1024*1024 : 1024) * (int) $matches[1];
|
return (strtolower($matches[2]) == 'm' ? 1024*1024 : 1024) * (int) $matches[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function tnef_check($name,$args)
|
||||||
|
{
|
||||||
|
global $passed_icon, $error_icon, $warning_icon;
|
||||||
|
|
||||||
|
$available = false;
|
||||||
|
$tnef = array();
|
||||||
|
|
||||||
|
if (exec("which tnef", $tnef))
|
||||||
|
{
|
||||||
|
$available = true;
|
||||||
|
}
|
||||||
|
elseif (exec("which ytnef", $tnef))
|
||||||
|
{
|
||||||
|
$available = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<div>".($available ? $passed_icon : $warning_icon).
|
||||||
|
' <span'.($available?'':' class="setup_warning"').'>'.
|
||||||
|
lang('Checking for tnef application').': '.
|
||||||
|
($available ? $tnef[0] : lang('False'));
|
||||||
|
|
||||||
|
if (!$available)
|
||||||
|
{
|
||||||
|
echo "<br />\n".lang('You dont have tnef or ytnef installed! It is needed to decode winmail.dat attachments in felamimail.')."\n";
|
||||||
|
}
|
||||||
|
echo "</span></div>\n";
|
||||||
|
|
||||||
|
return $available;
|
||||||
|
}
|
||||||
|
|
||||||
function php_ini_check($name,$args)
|
function php_ini_check($name,$args)
|
||||||
{
|
{
|
||||||
global $passed_icon, $error_icon, $warning_icon, $is_windows;
|
global $passed_icon, $error_icon, $warning_icon, $is_windows;
|
||||||
|
Loading…
Reference in New Issue
Block a user