From c431f219f52f004aebf316283260cfffbddf17c8 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Tue, 30 Sep 2014 10:33:13 -0300 Subject: Fixing move to trash --- service/pixelated/adapter/pixelated_mail.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'service/pixelated/adapter/pixelated_mail.py') diff --git a/service/pixelated/adapter/pixelated_mail.py b/service/pixelated/adapter/pixelated_mail.py index b7323af9..3e0f1ee0 100644 --- a/service/pixelated/adapter/pixelated_mail.py +++ b/service/pixelated/adapter/pixelated_mail.py @@ -215,6 +215,12 @@ class PixelatedMail: def save(self): return self.querier.save_mail(self) + def set_mailbox(self, mailbox_name): + self.fdoc.content['mbox'] = mailbox_name + + def set_recent(self): + self.fdoc.content['flags'].append("\\Recent") + def set_from(self, _from): self.headers['From'] = [_from] -- cgit v1.2.3