X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/83e029d54f2edd11b1706609832693c9540f7783..ed7f7860402395aedcb9e9c0cbade291c675a12f:/src/src/acl.c diff --git a/src/src/acl.c b/src/src/acl.c index 8825a8f13..4ad2b01b9 100644 --- a/src/src/acl.c +++ b/src/src/acl.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/acl.c,v 1.87 2009/11/16 19:50:36 nm4 Exp $ */ +/* $Cambridge: exim/src/src/acl.c,v 1.88 2010/06/06 00:27:52 pdp Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -171,6 +171,7 @@ enum { #ifdef EXPERIMENTAL_BRIGHTMAIL CONTROL_BMI_RUN, #endif + CONTROL_DEBUG, #ifndef DISABLE_DKIM CONTROL_DKIM_VERIFY, #endif @@ -204,6 +205,7 @@ static uschar *controls[] = { #ifdef EXPERIMENTAL_BRIGHTMAIL US"bmi_run", #endif + US"debug", #ifndef DISABLE_DKIM US"dkim_disable_verify", #endif @@ -517,6 +519,8 @@ static unsigned int control_forbids[] = { 0, /* bmi_run */ #endif + 0, /* debug */ + #ifndef DISABLE_DKIM (1<next) } break; + case CONTROL_DEBUG: + while (*p == '/') + { + if (Ustrncmp(p, "/tag=", 5) == 0) + { + uschar *pp = p + 5; + while (*pp != '\0' && *pp != '/') pp++; + debug_tag = string_copyn(p+5, pp-p-5); + p = pp; + } + else if (Ustrncmp(p, "/opts=", 6) == 0) + { + uschar *pp = p + 6; + while (*pp != '\0' && *pp != '/') pp++; + debug_opts = string_copyn(p+6, pp-p-6); + p = pp; + } + } + debug_logging_activate(debug_tag, debug_opts); + break; + case CONTROL_SUPPRESS_LOCAL_FIXUPS: suppress_local_fixups = TRUE; break;