diff options
author | elijah <elijah@riseup.net> | 2017-03-15 09:30:31 +0100 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2017-03-15 09:30:31 +0100 |
commit | 949fb90c2b59ee8becd5c5e8135b3e86bb348fdf (patch) | |
tree | 7f3844f5d24f05822bfacc7914a485e346498f88 /src | |
parent | 990ffae073c9fbb319f2685bf830e131d2db2e96 (diff) | |
parent | a3a2ede2142534c8d6abec2614f4c86b70f9bfe3 (diff) |
Merge remote-tracking branch 'merge-requests/82'
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/bitmask/core/mail_services.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py index 67dd9cdc..019a1048 100644 --- a/src/leap/bitmask/core/mail_services.py +++ b/src/leap/bitmask/core/mail_services.py @@ -779,7 +779,8 @@ class IncomingMailService(service.MultiService): status = self._status[userid] incoming = self.getServiceNamed(userid) - status['unread'] = yield incoming.unread() + if ['status'] == 'on': + status['unread'] = yield incoming.unread() defer.returnValue(status) def _set_status(self, address, status, error=None, unread=None): |