diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-07-14 22:55:22 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-11 17:00:23 +0200 |
commit | 72c7d1da2c50621fb93e18687beb089c2d2723b8 (patch) | |
tree | e3887efde0291c66cffb7318924e7fd513427326 /service/pixelated | |
parent | b53fc14234017cc9275bc319e4e4866f1ef9c142 (diff) |
prepare mailbox tests, missing property functionality on mail.py only
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/services/mailboxes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/service/pixelated/adapter/services/mailboxes.py b/service/pixelated/adapter/services/mailboxes.py index 4d90f0c6..d458406b 100644 --- a/service/pixelated/adapter/services/mailboxes.py +++ b/service/pixelated/adapter/services/mailboxes.py @@ -72,11 +72,13 @@ class Mailboxes(object): def move_to_inbox(self, mail_id): return self._move_to(mail_id, self.inbox) + @defer.inlineCallbacks def _move_to(self, mail_id, mailbox): + mailbox = yield mailbox mail = self.querier.mail(mail_id) mail.set_mailbox(mailbox.mailbox_name) mail.save() - return mail + defer.returnValue(mail) def mail(self, mail_id): return self.querier.mail(mail_id) |