From 2168a337c118541401f1bb6ef2fa775075056075 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 10 Jun 2016 16:41:21 +0200 Subject: [PATCH] Remove unused code --- plugins/enigma/lib/enigma_mime_message.php | 25 ++-------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/plugins/enigma/lib/enigma_mime_message.php b/plugins/enigma/lib/enigma_mime_message.php index ea37463ad68..0c93e39542f 100644 --- a/plugins/enigma/lib/enigma_mime_message.php +++ b/plugins/enigma/lib/enigma_mime_message.php @@ -45,30 +45,9 @@ function __construct($message, $type) // clone headers $this->headers = $message->headers(); -/* - if ($message->getParam('delay_file_io')) { - // use common temp dir - $temp_dir = $this->config->get('temp_dir'); - $body_file = tempnam($temp_dir, 'rcmMsg'); - $mime_result = $message->saveMessageBody($body_file); - - if (is_a($mime_result, 'PEAR_Error')) { - self::raise_error(array('code' => 650, 'type' => 'php', - 'file' => __FILE__, 'line' => __LINE__, - 'message' => "Could not create message: ".$mime_result->getMessage()), - true, false); - return false; - } - $msg_body = fopen($body_file, 'r'); - } - else { -*/ - // \r\n is must-have here - $this->body = $message->get() . "\r\n"; -/* - } -*/ + // \r\n is must-have here + $this->body = $message->get() . "\r\n"; } /**