Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2021-02-25 11:30:36 +0300
committerAnna Larch <anna@nextcloud.com>2021-02-26 16:45:01 +0300
commit4cc2dd73fdddabf9299ca91464023d7b706a1e41 (patch)
treeaea66411757fdf5519ce60c41a7717b5078a22e1 /lib/Model
parent649d9b1f384cb088db508a95eeae21dc949617e4 (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.php5
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));