From 2883fcba2bf3fcff286a70c3629016a0c53a6803 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 4 Nov 2014 15:28:27 +0100 Subject: [PATCH] Move TNEF decoder class to the Roundcube Framework (#1490055) So, for now all dependencies of the Framework can be installed with composer and we need only lib/Roundcube folder. des.inc was never required and is less important since we do encryption using openssl or mcrypt extensions. --- program/lib/Roundcube/rcube_message.php | 2 +- .../rcube_tnef_decoder.php} | 36 ++++++++++++------- 2 files changed, 24 insertions(+), 14 deletions(-) rename program/lib/{tnef_decoder.php => Roundcube/rcube_tnef_decoder.php} (88%) diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index 3644d6b8e..169d00ce1 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -851,7 +851,7 @@ class rcube_message { // @TODO: attachment may be huge, handle body via file $body = $this->get_part_body($part->mime_id); - $tnef = new tnef_decoder; + $tnef = new rcube_tnef_decoder; $tnef_arr = $tnef->decompress($body); $parts = array(); diff --git a/program/lib/tnef_decoder.php b/program/lib/Roundcube/rcube_tnef_decoder.php similarity index 88% rename from program/lib/tnef_decoder.php rename to program/lib/Roundcube/rcube_tnef_decoder.php index e6ccc23d7..f047ba072 100644 --- a/program/lib/tnef_decoder.php +++ b/program/lib/Roundcube/rcube_tnef_decoder.php @@ -1,22 +1,33 @@ | + | Author: Michael Slusarz | + +-----------------------------------------------------------------------+ +*/ + /** - * The Horde's class allows MS-TNEF data to be displayed. - * - * The TNEF rendering is based on code by: + * MS-TNEF format decoder based on code by: * Graham Norbury * Original design by: * Thomas Boll , Mark Simpson * - * Copyright 2002-2010 The Horde Project (http://www.horde.org/) - * - * See the enclosed file COPYING for license information (LGPL). If you - * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. - * - * @author Jan Schneider - * @author Michael Slusarz - * @package Horde_Compress + * @package Framework + * @subpackage Storage */ -class tnef_decoder +class rcube_tnef_decoder { const SIGNATURE = 0x223e9f78; const LVL_MESSAGE = 0x01; @@ -327,5 +338,4 @@ class tnef_decoder $this->_decodeAttribute($data, $attribute); } } - }