Fix -v verbose reporting in dkimverify.py
This commit is contained in:
@@ -15,6 +15,7 @@ UNRELEASED Version 0.7.0
|
|||||||
- Add new test, test_implicit_k, to verify that RSA processing is still
|
- Add new test, test_implicit_k, to verify that RSA processing is still
|
||||||
correct when the optional k= tag is not present in the DKIM public key
|
correct when the optional k= tag is not present in the DKIM public key
|
||||||
record
|
record
|
||||||
|
- Fix -v verbose reporting in dkimverify.py
|
||||||
|
|
||||||
2017-05-30 Version 0.6.2
|
2017-05-30 Version 0.6.2
|
||||||
- Fixed problem with header folding that caused the first line to be
|
- Fixed problem with header folding that caused the first line to be
|
||||||
|
|||||||
+2
-1
@@ -34,7 +34,8 @@ if sys.version_info[0] >= 3:
|
|||||||
message = sys.stdin.read()
|
message = sys.stdin.read()
|
||||||
verbose = '-v' in sys.argv
|
verbose = '-v' in sys.argv
|
||||||
if verbose:
|
if verbose:
|
||||||
d = dkim.DKIM(message)
|
import logging
|
||||||
|
d = dkim.DKIM(message, logger=logging)
|
||||||
res = d.verify()
|
res = d.verify()
|
||||||
else:
|
else:
|
||||||
res = dkim.verify(message)
|
res = dkim.verify(message)
|
||||||
|
|||||||
Reference in New Issue
Block a user