mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 12:36:01 +03:00
Merge pull request #136 from Prestaspirit/master
Add FT_PEEK in processStructure method
This commit is contained in:
commit
99f91b71b5
@ -513,8 +513,8 @@ class Message
|
|||||||
$this->attachments[] = $attachment;
|
$this->attachments[] = $attachment;
|
||||||
} elseif ($structure->type == 0 || $structure->type == 1) {
|
} elseif ($structure->type == 0 || $structure->type == 1) {
|
||||||
$messageBody = isset($partIdentifier) ?
|
$messageBody = isset($partIdentifier) ?
|
||||||
imap_fetchbody($this->imapStream, $this->uid, $partIdentifier, FT_UID)
|
imap_fetchbody($this->imapStream, $this->uid, $partIdentifier, FT_UID | FT_PEEK)
|
||||||
: imap_body($this->imapStream, $this->uid, FT_UID);
|
: imap_body($this->imapStream, $this->uid, FT_UID | FT_PEEK);
|
||||||
|
|
||||||
$messageBody = self::decode($messageBody, $structure->encoding);
|
$messageBody = self::decode($messageBody, $structure->encoding);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user