import v1.1.0_beta1 | 2009-08-21

This commit is contained in:
2019-07-17 22:16:19 +02:00
parent 2c1152f0d3
commit 8dee6b1a10
2306 changed files with 251360 additions and 23428 deletions

View File

@ -247,12 +247,11 @@ class Zend_Mime_Message
$res = new self();
foreach ($parts as $part) {
// now we build a new MimePart for the current Message Part:
$newPart = new Zend_Mime_Part($part);
$newPart = new Zend_Mime_Part($part['body']);
foreach ($part['header'] as $key => $value) {
/**
* @todo check for characterset and filename
*/
// list($key, $value) = $header;
switch(strtolower($key)) {
case 'content-type':
$newPart->type = $value;

View File

@ -23,11 +23,6 @@
*/
require_once 'Zend/Mime.php';
/**
* Zend_Mime_Exception
*/
require_once 'Zend/Mime/Exception.php';
/**
* Class representing a MIME part.
*
@ -96,6 +91,7 @@ class Zend_Mime_Part {
public function getEncodedStream()
{
if (!$this->_isStream) {
require_once 'Zend/Mime/Exception.php';
throw new Zend_Mime_Exception('Attempt to get a stream from a string part');
}
@ -112,6 +108,7 @@ class Zend_Mime_Part {
)
);
if (!is_resource($filter)) {
require_once 'Zend/Mime/Exception.php';
throw new Zend_Mime_Exception('Failed to append quoted-printable filter');
}
break;
@ -126,6 +123,7 @@ class Zend_Mime_Part {
)
);
if (!is_resource($filter)) {
require_once 'Zend/Mime/Exception.php';
throw new Zend_Mime_Exception('Failed to append base64 filter');
}
break;
@ -160,7 +158,7 @@ class Zend_Mime_Part {
$contentType = $this->type;
if ($this->charset) {
$contentType .= '; charset="' . $this->charset . '"';
$contentType .= '; charset=' . $this->charset;
}
if ($this->boundary) {
@ -189,11 +187,11 @@ class Zend_Mime_Part {
if ($this->description) {
$headers[] = array('Content-Description', $this->description);
}
if ($this->location) {
$headers[] = array('Content-Location', $this->location);
}
if ($this->language){
$headers[] = array('Content-Language', $this->language);
}