diff 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
line wrap: on
line diff
--- a/src/context.cpp	Mon Jun 04 16:47:20 2018 -0700
+++ b/src/context.cpp	Mon Jun 04 19:06:53 2018 -0700
@@ -1791,13 +1791,13 @@
         else {
             const char *from   = have;
             const char *action = tok.next();
-            if ((action == token_signed_white) || (action == token_signed_black) || (action == token_require_signed)) {
+            if ((action == token_signed_white) || (action == token_signed_black) || (action == token_unsigned_black) || (action == token_require_signed)) {
                 const char *signer = tok.next();
                 if (!signer) break;
                 else         me.add_dkim_from(from, action, signer);
             }
             else {
-                tok.token_error("signed_white/signed_black/require_signed", action);
+                tok.token_error("signed_white/signed_black/unsigned_black/require_signed", action);
             }
         }
     }