X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Facl.c;h=4ad2b01b9a1cc7f04110b7b45592df706d2f376e;hb=261dc43e32f6039781ca92535e56f5caaa68b809;hp=41f2cb35464a39acec933cb6e884458444f5d78e;hpb=67caae1f2006b09d857385e3dee4e7ff0a00e34d;p=exim.git diff --git a/src/src/acl.c b/src/src/acl.c index 41f2cb354..4ad2b01b9 100644 --- a/src/src/acl.c +++ b/src/src/acl.c @@ -1,10 +1,10 @@ -/* $Cambridge: exim/src/src/acl.c,v 1.86 2009/10/19 11:36:42 tom Exp $ */ +/* $Cambridge: exim/src/src/acl.c,v 1.88 2010/06/06 00:27:52 pdp Exp $ */ /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2007 */ +/* Copyright (c) University of Cambridge 1995 - 2009 */ /* See the file NOTICE for conditions of use and distribution. */ /* Code for handling Access Control Lists (ACLs) */ @@ -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;