diff options
author | Anna Larch <anna@nextcloud.com> | 2021-06-14 11:10:33 +0300 |
---|---|---|
committer | Anna Larch <anna@nextcloud.com> | 2021-06-22 12:19:10 +0300 |
commit | d1741deefc9748e1dca4a29a94a9ad8fb94520f3 (patch) | |
tree | 855a3d9ab1d71db3a13de7480d5255b04368700e /lib/Model | |
parent | bf72159528e90ac0bffc6e2a072e925dca7d458b (diff) |
Tag messages in classifier
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'lib/Model')
-rw-r--r-- | lib/Model/IMAPMessage.php | 2 |
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') { |