diff options
author | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-21 18:08:08 +0200 |
---|---|---|
committer | Folker Bernitt <fbernitt@thoughtworks.com> | 2015-08-21 18:08:08 +0200 |
commit | 0ef2319eca0d6ae715aa12b168cbecccf497ec02 (patch) | |
tree | fc01b795792cc42dae9fde629a5eb1eda0c4a8e9 /service/pixelated | |
parent | 9f4ec7f85e23845078d84cf58bf5e17a0d5aa93e (diff) | |
parent | 912c3e5cb9a11273d7a4d33c0e7dfb438801a184 (diff) |
Merge branch 'display-sent-emails-as-read' of https://github.com/rdoh/pixelated-user-agent
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/services/mail_service.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/pixelated/adapter/services/mail_service.py b/service/pixelated/adapter/services/mail_service.py index 9b7d20e8..4623a5eb 100644 --- a/service/pixelated/adapter/services/mail_service.py +++ b/service/pixelated/adapter/services/mail_service.py @@ -98,6 +98,8 @@ class MailService(object): if last_draft_ident: yield self.mail_store.delete_mail(last_draft_ident) sent_mail = yield self.mail_store.add_mail('SENT', mail.raw) + sent_mail.flags.add(Status.SEEN) + yield self.mail_store.update_mail(sent_mail) defer.returnValue(sent_mail) @defer.inlineCallbacks |