mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 11:16:03 +03:00
Merge pull request #80 from vsychov/rfc822-messages
added attachment emails support
This commit is contained in:
commit
dea2cfbe86
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user