summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/pixelated_mail.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/adapter/pixelated_mail.py')
-rw-r--r--service/pixelated/adapter/pixelated_mail.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/adapter/pixelated_mail.py b/service/pixelated/adapter/pixelated_mail.py
index 31e8ccc7..2b9ccd35 100644
--- a/service/pixelated/adapter/pixelated_mail.py
+++ b/service/pixelated/adapter/pixelated_mail.py
@@ -82,7 +82,7 @@ class PixelatedMail:
def _persist_mail_tags(self, current_tags):
hdoc = self.leap_mail.hdoc
- hdoc.content['headers']['X-Tags'] = current_tags
+ hdoc.content['headers']['X-Tags'] = list(current_tags)
self.leap_mail._soledad.put_doc(hdoc)
def has_tag(self, tag):
@@ -95,7 +95,7 @@ class PixelatedMail:
return {
'header': _headers,
'ident': self.ident,
- 'tags': self.tags,
+ 'tags': list(self.tags),
'status': statuses,
'security_casing': self.security_casing,
'body': self.body