* Fix incorrect key record validation failures due to invalid assumptions about

public key record requirements
* Remove extraneous dkim.py.orig file
This commit is contained in:
Scott Kitterman
2011-03-07 23:28:10 -05:00
parent 4cc38d62fd
commit 009a0bc15e
2 changed files with 4 additions and 639 deletions
+4
View File
@@ -552,6 +552,10 @@ def verify(message, debuglog=None):
if not s:
return False
a = re.split(r"\s*;\s*", s)
# Trailing ';' on signature record is valid, see RFC 4871 3.2
# tag-list = tag-spec 0*( ";" tag-spec ) [ ";" ]
if a[-1] == '':
a.pop(-1)
pub = {}
for f in a:
m = re.match(r"(\w+)=(.*)", f)