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
diff options
context:
space:
mode:
authorgreta <gretadoci@gmail.com>2021-12-13 20:31:55 +0300
committergreta <gretadoci@gmail.com>2021-12-20 13:45:50 +0300
commitda131a0e01f9aac26b382a1139ddf6f2e2f87eac (patch)
treefa24b26167fdd0a8f94c1abec8927912b4aee223 /lib
parent132259b821e2dae4624c8e1851953f2cb61a2305 (diff)
Fix mark as spam display
Signed-off-by: greta <gretadoci@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Db/Message.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Db/Message.php b/lib/Db/Message.php
index adc965db5..e989f21f1 100644
--- a/lib/Db/Message.php
+++ b/lib/Db/Message.php
@@ -84,8 +84,8 @@ class Message extends Entity implements JsonSerializable {
'flagged',
'seen',
'forwarded',
- 'junk',
- 'notjunk',
+ '$junk',
+ '$notjunk',
'mdnsent',
Tag::LABEL_IMPORTANT,
'$important' // @todo remove this when we have removed all references on IMAP to $important @link https://github.com/nextcloud/mail/issues/25
@@ -262,6 +262,10 @@ class Message extends Entity implements JsonSerializable {
}
if ($flag === Tag::LABEL_IMPORTANT) {
$this->setFlagImportant($value);
+ } elseif ($flag === '$junk') {
+ $this->setFlagJunk($value);
+ } elseif ($flag === '$notjunk') {
+ $this->setFlagNotjunk($value);
} else {
$this->setter(
$this->columnToProperty("flag_$flag"),
@@ -294,7 +298,8 @@ class Message extends Entity implements JsonSerializable {
'forwarded' => ($this->getFlagForwarded() === true),
'hasAttachments' => ($this->getFlagAttachments() ?? false),
'important' => ($this->getFlagImportant() === true),
- 'junk' => ($this->getFlagJunk() === true),
+ '$junk' => ($this->getFlagJunk() === true),
+ '$notjunk' => ($this->getFlagNotjunk() === true),
'mdnsent' => ($this->getFlagMdnsent() === true),
],
'tags' => $indexed,