summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-04-15 19:34:02 +0000
committerIsis Lovecruft <isis@torproject.org>2013-04-15 19:34:02 +0000
commitdf6f7a038f3738f76cf7f5bb4a85e17a9a27ec56 (patch)
tree4d94cc7c207c4ecfe4b07b43d0c7dae5fcd59d7c /src/leap
parent4b13ac66d10b98a57c9161ed9b43a26b22585e96 (diff)
Update mappings of Postfix TCP map protocol codes to message strings.
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/mx/alias_resolver.py26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/leap/mx/alias_resolver.py b/src/leap/mx/alias_resolver.py
index 310830b..38311d8 100644
--- a/src/leap/mx/alias_resolver.py
+++ b/src/leap/mx/alias_resolver.py
@@ -101,15 +101,23 @@ class StatusCodes(object):
NOKEY = "NOKEY Couldn't find your keys, sorry. Did you check in the sofa?"
DEFER = "DEFER_IF_LOCAL xxx fill me in"
DENY = "DENY no gurlz aloud in teh tree house."
- FAIL = "FAIL xxx fill me in"
-
- fakeSMTPCodes = { '250': OK,
- '300': RETRY,
- '500': BAD,
- '550': NOKEY,
- '552': DEFER,
- '553': DENY,
- '554': FAIL, }
+ FAIL = "FAIL this belongs on the failblog"
+
+ SMTPCodes = { '200': OK,
+ '400': RETRY,
+ '500': BAD,
+ '550': NOKEY,
+ '552': DEFER,
+ '553': DENY,
+ '554': FAIL, }
+
+ SMTPStrings = { 'OK' 200,
+ 'RETRY': 400,
+ 'BAD': 500,
+ 'NOKEY': 550,
+ 'DEFER': 552,
+ 'DENY': 553,
+ 'FAIL': 554, }
def __init__(self, status_code=None):
"""xxx fill me in"""