X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/87ba3f5f78da0d53bfb3bdef9db569c8da241eba..29aba4183e116b5ca706e5479db7302cf07eaa7a:/src/src/acl.c diff --git a/src/src/acl.c b/src/src/acl.c index 357abfad3..5ea853521 100644 --- a/src/src/acl.c +++ b/src/src/acl.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/acl.c,v 1.32 2005/05/17 15:00:04 ph10 Exp $ */ +/* $Cambridge: exim/src/src/acl.c,v 1.33 2005/05/23 15:28:38 fanf2 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -421,7 +421,7 @@ enum { #ifdef WITH_CONTENT_SCAN CONTROL_NO_MBOX_UNSPOOL, #endif - CONTROL_FAKEREJECT, CONTROL_NO_MULTILINE }; + CONTROL_FAKEDEFER, CONTROL_FAKEREJECT, CONTROL_NO_MULTILINE }; /* Bit map vector of which controls are not allowed at certain times. For each control, there's a bitmap of dis-allowed times. For some, it is easier to @@ -468,6 +468,11 @@ static unsigned int control_forbids[] = { (1<next) no_multiline_responses = TRUE; break; + case CONTROL_FAKEDEFER: case CONTROL_FAKEREJECT: - fake_reject = TRUE; + fake_response = (control_type == CONTROL_FAKEDEFER) ? DEFER : FAIL; if (*p == '/') { uschar *pp = p + 1; while (*pp != 0) pp++; - fake_reject_text = expand_string(string_copyn(p+1, pp-p-1)); + fake_response_text = expand_string(string_copyn(p+1, pp-p-1)); p = pp; } else { /* Explicitly reset to default string */ - fake_reject_text = US"Your message has been rejected but is being kept for evaluation.\nIf it was a legitimate message, it may still be delivered to the target recipient(s)."; + fake_response_text = US"Your message has been rejected but is being kept for evaluation.\nIf it was a legitimate message, it may still be delivered to the target recipient(s)."; } break;