Skip to content
Snippets Groups Projects
Commit ea81a310 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Clear unknown mechanism list at proper time.

parent 2ad3e1cd
Branches
Tags
No related merge requests found
......@@ -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
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment