Cannot sign messages without a DNS resolver installed
Bug #847669 reported by
Petri Lehtinen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
dkimpy | Status tracked in Trunk | |||||
Trunk |
Fix Released
|
Wishlist
|
Stuart Gathman |
Bug Description
Only message verifying requires DNS resolving. However, pydkim wants to import such a library even if pydkim is only used for signing. It would be nice to fire the DNS resolver imports only when verify() is actually called.
description: | updated |
description: | updated |
Changed in pydkim: | |
importance: | Undecided → Wishlist |
Changed in pydkim: | |
assignee: | nobody → Stuart Gathman (stuart-gathman) |
milestone: | none → 0.4.2 |
status: | New → Fix Committed |
To post a comment you must log in.
Revision 76 make dns library import optional. Signing (and even verify that doesn't make it to the DNS lookup, e.g. body hash mismatch) works with no dns library. In case a verify is attempted and DNS is required and missing, this exception is raised:
RuntimeError: DKIM.verify requires DNS or dnspython module