Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Jun 12, 2016
1 parent e2ca2e1 commit 2168a33
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions plugins/enigma/lib/enigma_mime_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

/**
Expand Down

0 comments on commit 2168a33

Please sign in to comment.