summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/mail.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2014-10-17 17:43:46 -0300
committerVictor Shyba <victor.shyba@gmail.com>2014-10-17 17:43:46 -0300
commit3aab6bd8c1ac45c2c5637bf86663f31cd4ea531c (patch)
tree60c7c09a53ac1c82b6ea23826af99ab00e5b24e1 /service/pixelated/adapter/mail.py
parent209729cbc97bf989cb9cb149c74d5cb2c1adc3b8 (diff)
adds regression tests on #114 due to a bug found and fixes mail creation with predefined status that wasnt being set
Diffstat (limited to 'service/pixelated/adapter/mail.py')
-rw-r--r--service/pixelated/adapter/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mail.py b/service/pixelated/adapter/mail.py
index ca29687e..1d2080fa 100644
--- a/service/pixelated/adapter/mail.py
+++ b/service/pixelated/adapter/mail.py
@@ -250,7 +250,7 @@ class PixelatedMail(Mail):
def mark_as_read(self):
if Status.SEEN in self.fdoc.content['flags']:
- return
+ return self
self.fdoc.content['flags'].append(Status.SEEN)
self.save()
return self