Merge pull request #80 from vsychov/rfc822-messages

added attachment emails support
This commit is contained in:
Robert Hafner 2014-09-24 16:59:49 -07:00
commit dea2cfbe86

View File

@ -444,7 +444,9 @@ class Message
{
$parameters = self::getParametersFromStructure($structure);
if (isset($parameters['name']) || isset($parameters['filename'])) {
if ((isset($parameters['name']) || isset($parameters['filename']))
|| (isset($structure->subtype) && strtolower($structure->subtype) == 'rfc822')
) {
$attachment = new Attachment($this, $structure, $partIdentifier);
$this->attachments[] = $attachment;
} elseif ($structure->type == 0 || $structure->type == 1) {