mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 02:39:21 +03:00
Update Message.php
Hi, I justa added FT_PEEK flag for the seen flag is not added automatically when calling the method processStructure while the message was not read
This commit is contained in:
parent
129e45793c
commit
61ac0f64ca
@ -513,8 +513,8 @@ class Message
|
||||
$this->attachments[] = $attachment;
|
||||
} elseif ($structure->type == 0 || $structure->type == 1) {
|
||||
$messageBody = isset($partIdentifier) ?
|
||||
imap_fetchbody($this->imapStream, $this->uid, $partIdentifier, FT_UID)
|
||||
: imap_body($this->imapStream, $this->uid, FT_UID);
|
||||
imap_fetchbody($this->imapStream, $this->uid, $partIdentifier, FT_UID | FT_PEEK)
|
||||
: imap_body($this->imapStream, $this->uid, FT_UID | FT_PEEK);
|
||||
|
||||
$messageBody = self::decode($messageBody, $structure->encoding);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user