summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-04-09 20:49:02 +0200
committerTomasz Kramkowski <tk@the-tk.com>2017-04-09 20:49:02 +0200
commit1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84 (patch)
treeb644f5d74a285b909a539079f01db456120a0876
parent889116189eedbfcfecee16ee25a0ed9c86565da9 (diff)
downloaddmarcpipe-1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84.tar.gz
dmarcpipe-1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84.tar.xz
dmarcpipe-1bb1a1bbdee8ae1c880371e8d9b3161e62bfad84.zip
dmarc: make sp-missing not an error
-rw-r--r--dmarc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dmarc.py b/dmarc.py
index 3543a2c..dfb3202 100644
--- a/dmarc.py
+++ b/dmarc.py
@@ -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',