fix for the problem, that forwarding mails could lead to the conversion of the forwarded mails to plain text of the raw body of this mail.

This commit is contained in:
Klaus Leithoff 2007-10-05 07:04:24 +00:00
parent b1c111db85
commit 4b24d98f77

View File

@ -710,10 +710,11 @@
case 'MESSAGE/RFC822':
$bofelamimail->openConnection();
$bofelamimail->reopen($attachment['folder']);
$rawHeader = $bofelamimail->getMessageRawHeader($attachment['uid'], $attachment['partID']);
$rawBody = $bofelamimail->getMessageRawBody($attachment['uid'], $attachment['partID']);
$bofelamimail->closeConnection();
$_mailObject->AddStringAttachment($rawBody, $attachment['name'], '7bit', 'message/rfc822');
$_mailObject->AddStringAttachment($rawHeader.$rawBody, $attachment['name'], '7bit', 'message/rfc822');
break;