summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/leap/bitmask/core/mail_services.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py
index 584aa8b6..6a53eac1 100644
--- a/src/leap/bitmask/core/mail_services.py
+++ b/src/leap/bitmask/core/mail_services.py
@@ -605,9 +605,13 @@ class StandardMailService(service.MultiService, HookableService):
def do_mixnet_status(self, userid, address):
# XXX: for now there is no support in the provider
# we'll mock it if it's enabled
- status = 'disabled'
- if self._mixnet_enabled:
+ provider = address.split('@')[1]
+ if not self._mixnet_enabled:
+ status = 'disabled'
+ elif provider in ['panoramix-project.eu', 'riseup.net']:
status = 'ok'
+ else:
+ status = 'unsuported'
return {'status': status}
def get_token(self, userid):