summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/adapter/mailstore/leap_mailstore.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_mailstore.py b/service/pixelated/adapter/mailstore/leap_mailstore.py
index cf8c8ed1..4a0de6a1 100644
--- a/service/pixelated/adapter/mailstore/leap_mailstore.py
+++ b/service/pixelated/adapter/mailstore/leap_mailstore.py
@@ -121,12 +121,12 @@ class LeapMail(Mail):
return result
- def remove_duplicates(self, values):
+ def _remove_duplicates(self, values):
return list(set(values))
def _decoded_header_utf_8(self, header_value):
if isinstance(header_value, list):
- return self.remove_duplicates([self._decoded_header_utf_8(v) for v in header_value])
+ return self._remove_duplicates([self._decoded_header_utf_8(v) for v in header_value])
elif header_value is not None:
def encode_chunk(content, encoding):
return unicode(content.strip(), encoding=encoding or 'ascii', errors='ignore')
@@ -150,9 +150,6 @@ class LeapMail(Mail):
'attachments': [attachment.as_dict() for attachment in self._attachments]
}
- def _reply_recipient(self, kind):
- return self.headers.get(kind, [])
-
@staticmethod
def from_dict(mail_dict):
# TODO: implement this method and also write tests for it