From df6f7a038f3738f76cf7f5bb4a85e17a9a27ec56 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Mon, 15 Apr 2013 19:34:02 +0000 Subject: Update mappings of Postfix TCP map protocol codes to message strings. --- src/leap/mx/alias_resolver.py | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'src/leap/mx') 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""" -- cgit v1.2.3