access.db stores keys in lower case
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# A simple milter that has grown quite a bit.
|
# A simple milter that has grown quite a bit.
|
||||||
# $Log$
|
# $Log$
|
||||||
|
# Revision 1.33 2005/10/19 19:37:50 customdesigned
|
||||||
|
# Train screener on whitelisted messages.
|
||||||
|
#
|
||||||
# Revision 1.32 2005/10/14 16:17:31 customdesigned
|
# Revision 1.32 2005/10/14 16:17:31 customdesigned
|
||||||
# Auto whitelist refinements.
|
# Auto whitelist refinements.
|
||||||
#
|
#
|
||||||
@@ -609,7 +612,7 @@ class SPFPolicy(object):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def getFailPolicy(self):
|
def getFailPolicy(self):
|
||||||
policy = self.getPolicy('SPF-Fail:')
|
policy = self.getPolicy('spf-fail:')
|
||||||
if not policy:
|
if not policy:
|
||||||
if self.domain in spf_accept_fail:
|
if self.domain in spf_accept_fail:
|
||||||
policy = 'CBV'
|
policy = 'CBV'
|
||||||
@@ -618,7 +621,7 @@ class SPFPolicy(object):
|
|||||||
return policy
|
return policy
|
||||||
|
|
||||||
def getNonePolicy(self):
|
def getNonePolicy(self):
|
||||||
policy = self.getPolicy('SPF-None:')
|
policy = self.getPolicy('spf-none:')
|
||||||
if not policy:
|
if not policy:
|
||||||
if spf_reject_noptr:
|
if spf_reject_noptr:
|
||||||
policy = 'REJECT'
|
policy = 'REJECT'
|
||||||
@@ -627,7 +630,7 @@ class SPFPolicy(object):
|
|||||||
return policy
|
return policy
|
||||||
|
|
||||||
def getSoftfailPolicy(self):
|
def getSoftfailPolicy(self):
|
||||||
policy = self.getPolicy('SPF-Softfail:')
|
policy = self.getPolicy('spf-softfail:')
|
||||||
if not policy:
|
if not policy:
|
||||||
if self.domain in spf_accept_softfail:
|
if self.domain in spf_accept_softfail:
|
||||||
policy = 'OK'
|
policy = 'OK'
|
||||||
@@ -638,7 +641,7 @@ class SPFPolicy(object):
|
|||||||
return policy
|
return policy
|
||||||
|
|
||||||
def getNeutralPolicy(self):
|
def getNeutralPolicy(self):
|
||||||
policy = self.getPolicy('SPF-Neutral:')
|
policy = self.getPolicy('spf-neutral:')
|
||||||
if not policy:
|
if not policy:
|
||||||
if self.domain in spf_reject_neutral:
|
if self.domain in spf_reject_neutral:
|
||||||
policy = 'REJECT'
|
policy = 'REJECT'
|
||||||
@@ -646,13 +649,13 @@ class SPFPolicy(object):
|
|||||||
return policy
|
return policy
|
||||||
|
|
||||||
def getPermErrorPolicy(self):
|
def getPermErrorPolicy(self):
|
||||||
policy = self.getPolicy('SPF-PermError:')
|
policy = self.getPolicy('spf-permerror:')
|
||||||
if not policy:
|
if not policy:
|
||||||
policy = 'REJECT'
|
policy = 'REJECT'
|
||||||
return policy
|
return policy
|
||||||
|
|
||||||
def getPassPolicy(self):
|
def getPassPolicy(self):
|
||||||
policy = self.getPolicy('SPF-Pass:')
|
policy = self.getPolicy('spf-pass:')
|
||||||
if not policy:
|
if not policy:
|
||||||
policy = 'OK'
|
policy = 'OK'
|
||||||
return policy
|
return policy
|
||||||
|
|||||||
Reference in New Issue
Block a user