summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/pixelated_mailboxes.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/pixelated/adapter/pixelated_mailboxes.py')
-rw-r--r--service/pixelated/adapter/pixelated_mailboxes.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/service/pixelated/adapter/pixelated_mailboxes.py b/service/pixelated/adapter/pixelated_mailboxes.py
index ff1aa421..aa39a5c4 100644
--- a/service/pixelated/adapter/pixelated_mailboxes.py
+++ b/service/pixelated/adapter/pixelated_mailboxes.py
@@ -60,11 +60,8 @@ class PixelatedMailBoxes():
self.drafts().remove(ident)
return new_mail
- def move_to_trash(self, mail):
- origin_mailbox = mail.mailbox_name
-
- new_mail_id = self.trash().add(mail)
- self._create_or_get(origin_mailbox).remove(mail)
+ def move_to_trash(self, mail_id):
+ new_mail_id = self.trash().add_existing(mail_id)
return new_mail_id
def mail(self, mail_id):