summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/tag_service.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/adapter/tag_service.py')
-rw-r--r--service/pixelated/adapter/tag_service.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/service/pixelated/adapter/tag_service.py b/service/pixelated/adapter/tag_service.py
index 00f28b40..ecc64fad 100644
--- a/service/pixelated/adapter/tag_service.py
+++ b/service/pixelated/adapter/tag_service.py
@@ -20,7 +20,11 @@ from pixelated.adapter.tag_index import TagIndex
class TagService:
instance = None
- SPECIAL_TAGS = {Tag('inbox', True), Tag('sent', True), Tag('drafts', True), Tag('trash', True)}
+ SPECIAL_TAGS = [Tag('inbox', True), Tag('sent', True), Tag('drafts', True), Tag('trash', True)]
+
+ @classmethod
+ def extract_reserved(cls, tags):
+ return set(tag.name for tag in cls.SPECIAL_TAGS if tag.name in tags)
@classmethod
def get_instance(cls):