From d2c78426f9e493361b71199244ef2626eb6b9451 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 14 Sep 2015 12:28:06 +0200 Subject: [feat] return a more meaningful msg if user exists but has no key - Resolves: #7272 --- src/leap/mx/check_recipient_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/leap/mx/check_recipient_access.py') diff --git a/src/leap/mx/check_recipient_access.py b/src/leap/mx/check_recipient_access.py index f994e78..070ff0d 100644 --- a/src/leap/mx/check_recipient_access.py +++ b/src/leap/mx/check_recipient_access.py @@ -65,7 +65,7 @@ class LEAPPostFixTCPMapAccessServer(postfix.PostfixTCPMapServer): elif pubkey is None: self.sendCode( TCP_MAP_CODE_TEMPORARY_FAILURE, - postfix.quote("4.7.13 USER ACCOUNT DISABLED")) + postfix.quote("4.7.13 NO PUBKEY FOUND")) else: self.sendCode( TCP_MAP_CODE_SUCCESS, -- cgit v1.2.3 From 5cba5ae32003efd7b068e6646ba4c0ada4e29867 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 25 Nov 2015 23:46:24 +0100 Subject: [style] fix pep8 errors --- src/leap/mx/check_recipient_access.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/leap/mx/check_recipient_access.py') diff --git a/src/leap/mx/check_recipient_access.py b/src/leap/mx/check_recipient_access.py index 070ff0d..67bfd04 100644 --- a/src/leap/mx/check_recipient_access.py +++ b/src/leap/mx/check_recipient_access.py @@ -43,7 +43,6 @@ class LEAPPostFixTCPMapAccessServer(postfix.PostfixTCPMapServer): are looked up by the factory, and will return a permanent or a temporary failure in case either the user or the key don't exist, respectivelly. """ - def _cbGot(self, value): """ Return a code and message depending on the result of the factory's @@ -85,4 +84,3 @@ class CheckRecipientAccessFactory(LEAPPostfixTCPMapServerFactory): @property def _query_message(self): return "check recipient access" - -- cgit v1.2.3