From 5be20824c59ec2a16692d5ccfaf8c9bfcecbc6a3 Mon Sep 17 00:00:00 2001 From: Philip Hazel Date: Tue, 19 Oct 2004 11:29:25 +0000 Subject: Make $recipients available in the predata ACL (fixes an oversight). --- src/src/smtp_in.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index ff08cbd56..9189c67ee 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/smtp_in.c,v 1.2 2004/10/19 11:04:26 ph10 Exp $ */ +/* $Cambridge: exim/src/src/smtp_in.c,v 1.3 2004/10/19 11:29:25 ph10 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * @@ -3033,9 +3033,14 @@ while (done <= 0) smtp_printf("554 Too many recipients\r\n"); break; } - - rc = (acl_smtp_predata == NULL)? OK : - acl_check(ACL_WHERE_PREDATA, NULL, acl_smtp_predata, &user_msg, &log_msg); + + if (acl_smtp_predata == NULL) rc = OK; else + { + enable_dollar_recipients = TRUE; + rc = acl_check(ACL_WHERE_PREDATA, NULL, acl_smtp_predata, &user_msg, + &log_msg); + enable_dollar_recipients = FALSE; + } if (rc == OK) { -- cgit v1.2.3