no need to fetch mail again

This commit is contained in:
Ralf Becker 2015-11-11 12:26:14 +00:00
parent 6969120d8b
commit 3d85ca9db6

View File

@ -2373,7 +2373,6 @@ class mail_ui
$this->mail_bo->reopen($mailbox);
$message = $this->mail_bo->getMessageRawBody($uid, $partID, $mailbox);
$headers = $this->mail_bo->getMessageHeader($uid, $partID, true,false, $mailbox);
$this->mail_bo->closeConnection();
if ($rememberServerID != $this->mail_bo->profileID)
@ -2385,6 +2384,7 @@ class mail_ui
$GLOBALS['egw']->session->commit_session();
if (!$display)
{
$headers = Horde_Mime_Headers::parseHeaders($message);
$subject = str_replace('$$','__',mail_bo::decode_header($headers['SUBJECT']));
html::safe_content_header($message, $subject.".eml", $mime='message/rfc822', $size=0, true, true);
echo $message;