summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/core/mail_services.py3
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 67dd9cd..019a104 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):