Fix -v verbose reporting in dkimverify.py

This commit is contained in:
Scott Kitterman
2017-12-01 02:10:03 -05:00
parent 0c6fdbf7c6
commit 6b80254bd9
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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
View File
@@ -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)