diff options
author | Anna Larch <anna@nextcloud.com> | 2021-02-25 11:30:36 +0300 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2021-02-26 16:45:01 +0300 |
commit | 4cc2dd73fdddabf9299ca91464023d7b706a1e41 (patch) | |
tree | aea66411757fdf5519ce60c41a7717b5078a22e1 /lib/Model | |
parent | 649d9b1f384cb088db508a95eeae21dc949617e4 (diff) |
Save important flag to IMAP if permflags enabled
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/IMAPMessage.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php index 46f00da08..bd8437e72 100644 --- a/lib/Model/IMAPMessage.php +++ b/lib/Model/IMAPMessage.php @@ -129,6 +129,7 @@ class IMAPMessage implements IMessage, JsonSerializable { } /** + * @deprecated Seems unused * @return array */ public function getFlags(): array { @@ -142,10 +143,12 @@ class IMAPMessage implements IMessage, JsonSerializable { 'forwarded' => in_array(Horde_Imap_Client::FLAG_FORWARDED, $flags), 'hasAttachments' => $this->hasAttachments($this->fetch->getStructure()), 'mdnsent' => in_array(Horde_Imap_Client::FLAG_MDNSENT, $flags, true), + 'important' => in_array('$important', $flags, true) ]; } /** + * @deprecated Seems unused * @param string[] $flags * * @throws Exception @@ -691,7 +694,7 @@ class IMAPMessage implements IMessage, JsonSerializable { in_array('junk', $flags, true) ); $msg->setFlagNotjunk(in_array(Horde_Imap_Client::FLAG_NOTJUNK, $flags, true)); - $msg->setFlagImportant(false); + $msg->setFlagImportant(in_array('$important', $flags, true)); $msg->setFlagAttachments(false); $msg->setFlagMdnsent(in_array(Horde_Imap_Client::FLAG_MDNSENT, $flags, true)); |