diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-09 20:49:02 +0200 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-04-09 20:49:02 +0200 |
commit | 1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84 (patch) | |
tree | b644f5d74a285b909a539079f01db456120a0876 | |
parent | 889116189eedbfcfecee16ee25a0ed9c86565da9 (diff) | |
download | dmarcpipe-1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84.tar.gz dmarcpipe-1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84.tar.xz dmarcpipe-1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84.zip |
dmarc: make sp-missing not an error
-rw-r--r-- | dmarc.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -60,7 +60,8 @@ def _feedback(root): adkim = _enum(root, 'adkim', Ealignment, mandatory=False) aspf = _enum(root, 'aspf', Ealignment, mandatory=False) p = _enum(root, 'p', Edisposition) - sp = _enum(root, 'sp', Edisposition) + # common deviation from spec + sp = _enum(root, 'sp', Edisposition, mandatory=False, default=p) pct = _integer(root, 'pct') nt = namedtuple('PolicyPublishedType', ['domain', 'adkim', 'aspf', 'p', 'sp', |