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-06-14 11:10:33 +0300
committerAnna Larch <anna@nextcloud.com>2021-06-22 12:19:10 +0300
commitd1741deefc9748e1dca4a29a94a9ad8fb94520f3 (patch)
tree855a3d9ab1d71db3a13de7480d5255b04368700e /lib/Model
parentbf72159528e90ac0bffc6e2a072e925dca7d458b (diff)
Tag messages in classifier
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IMAPMessage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php
index 07016af78..846542758 100644
--- a/lib/Model/IMAPMessage.php
+++ b/lib/Model/IMAPMessage.php
@@ -773,7 +773,7 @@ class IMAPMessage implements IMessage, JsonSerializable {
private function generateTagEntites(array $tags, string $userId): array {
$t = [];
foreach ($tags as $keyword) {
- if ($keyword === '$important' || $keyword === '$labelimportant') {
+ if ($keyword === '$important' || $keyword === 'important' || $keyword === '$labelimportant') {
$keyword = Tag::LABEL_IMPORTANT;
}
if ($keyword === '$labelwork') {