Clear unknown mechanism list at proper time.

This commit is contained in:
Stuart Gathman
2005-05-31 18:57:59 +00:00
parent 2ad3e1cd6e
commit ea81a31044
+1 -1
View File
@@ -401,6 +401,7 @@ class query(object):
Returns (result, mta-status-code, explanation) where
result in ['fail', 'softfail', 'neutral' 'unknown', 'pass', 'error']
"""
self.mech = [] # unknown mechanisms
if self.i.startswith('127.'):
return ('pass', 250, 'local connections always pass')
@@ -456,7 +457,6 @@ class query(object):
# overridden with 'default=' modifier
#
default = 'neutral'
self.mech = [] # unknown mechanisms
# Look for modifiers
#