diff options
author | Jefferson Stachelski <jeffhsta@riseup.net> | 2016-02-12 17:58:45 -0200 |
---|---|---|
committer | Jefferson Stachelski <jeffhsta@riseup.net> | 2016-02-12 17:58:45 -0200 |
commit | a9626c697992fcd596726a4c16ba8c9757f6a0dd (patch) | |
tree | 36461e71dada715b6bd1f59c311271f5a83f68b0 /service/pixelated/adapter/mailstore | |
parent | e889bb5c34d4fcfa0f798134771e9dcb3ab062f6 (diff) |
attachments are only un-linked from emails but not deleted in soledad
- removed backend delete of attachments
- JS unit tests
- Functional test
Issue #549
Diffstat (limited to 'service/pixelated/adapter/mailstore')
-rw-r--r-- | service/pixelated/adapter/mailstore/leap_attachment_store.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/service/pixelated/adapter/mailstore/leap_attachment_store.py b/service/pixelated/adapter/mailstore/leap_attachment_store.py index 2c004abf..982d9222 100644 --- a/service/pixelated/adapter/mailstore/leap_attachment_store.py +++ b/service/pixelated/adapter/mailstore/leap_attachment_store.py @@ -63,9 +63,3 @@ class LeapAttachmentStore(object): def _calc_attachment_id_(self, content, content_type, encoder=encoders.encode_base64): cdoc = self._attachment_to_cdoc(content, content_type, encoder) return cdoc.phash - - @defer.inlineCallbacks - def delete_attachment(self, attachment_id): - doc = yield self.soledad.get_from_index('by-type-and-payloadhash', 'cnt', attachment_id) - doc = doc[0] - yield self.soledad.delete_doc(doc) |