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.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/service/pixelated/adapter/pixelated_mail.py b/service/pixelated/adapter/pixelated_mail.py
index eab39759..3ff392b0 100644
--- a/service/pixelated/adapter/pixelated_mail.py
+++ b/service/pixelated/adapter/pixelated_mail.py
@@ -90,7 +90,6 @@ class PixelatedMail:
recipients = temporary_headers[header_type].split(',')
temporary_headers[header_type] = map(lambda x: x.lstrip(), recipients)
-
def mark_as_deleted(self):
# self.remove_all_tags()
# self.leap_mail.setFlags((Status.PixelatedStatus.DELETED,), 1)
@@ -100,12 +99,12 @@ class PixelatedMail:
self.update_tags(set([]))
def update_tags(self, tags):
- #old_tags = self.tags
- #self.tags = tags
- #removed = old_tags.difference(tags)
- #added = tags.difference(old_tags)
- #self._persist_mail_tags(tags)
- #self.tag_service.notify_tags_updated(added, removed, self.ident)
+ # old_tags = self.tags
+ # self.tags = tags
+ # removed = old_tags.difference(tags)
+ # added = tags.difference(old_tags)
+ # self._persist_mail_tags(tags)
+ # self.tag_service.notify_tags_updated(added, removed, self.ident)
return self.tags
def mark_as_read(self):
@@ -177,6 +176,7 @@ class PixelatedMail:
date = headers['received'].split(";")[-1].strip()
return dateparser.parse(date).isoformat()
+
def from_dict(mail_dict):
mail = PixelatedMail()
mail.headers = mail_dict.get('header', {})