Mercurial > dnsbl
comparison src/context.cpp @ 453:8393ce4658cc stable-6-0-71
add unsigned_black for enforcement of dmarc policy
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 04 Jun 2018 19:06:53 -0700 |
parents | f2bc221240e8 |
children | 48cfa55cd73b |
comparison
equal
deleted
inserted
replaced
452:3bbc64cece70 | 453:8393ce4658cc |
---|---|
1789 // optional separators | 1789 // optional separators |
1790 } | 1790 } |
1791 else { | 1791 else { |
1792 const char *from = have; | 1792 const char *from = have; |
1793 const char *action = tok.next(); | 1793 const char *action = tok.next(); |
1794 if ((action == token_signed_white) || (action == token_signed_black) || (action == token_require_signed)) { | 1794 if ((action == token_signed_white) || (action == token_signed_black) || (action == token_unsigned_black) || (action == token_require_signed)) { |
1795 const char *signer = tok.next(); | 1795 const char *signer = tok.next(); |
1796 if (!signer) break; | 1796 if (!signer) break; |
1797 else me.add_dkim_from(from, action, signer); | 1797 else me.add_dkim_from(from, action, signer); |
1798 } | 1798 } |
1799 else { | 1799 else { |
1800 tok.token_error("signed_white/signed_black/require_signed", action); | 1800 tok.token_error("signed_white/signed_black/unsigned_black/require_signed", action); |
1801 } | 1801 } |
1802 } | 1802 } |
1803 } | 1803 } |
1804 return tsa(tok, token_semi); | 1804 return tsa(tok, token_semi); |
1805 } | 1805 } |