summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-08-02 00:08:38 +0200
committerKali Kaneko <kali@leap.se>2017-08-24 17:15:22 -0400
commitf8eea5136edbc23b16847a521ae6cc1b4df7b449 (patch)
tree30b308f49c4fcae39107e735e60cc68560dea56e /src/leap
parent36a1e159f3e194ab1ad6db657c8a1fe9a936f5e4 (diff)
[feat] hardcode some providers to mock that they provide mixnets
Diffstat (limited to 'src/leap')
-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 584aa8b..6a53eac 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):