From 7502f0cbd3753de473a2279acaae15f9bbdfb5ee Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 14 Feb 2024 11:25:52 +0000 Subject: [PATCH] Expand recipients_max, smtp-batch input --- src/src/smtp_in.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 1d4c232a5..2d977b975 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -1876,7 +1876,8 @@ while (done <= 0) /* Check maximum number allowed */ - if (recipients_max > 0 && recipients_count + 1 > recipients_max) + if ( recipients_max_expanded > 0 + && recipients_count + 1 > recipients_max_expanded) /* The function moan_smtp_batch() does not return. */ moan_smtp_batch(smtp_cmd_buffer, "%s too many recipients", recipients_max_reject ? "552": "452"); @@ -4066,7 +4067,7 @@ while (done <= 0) g = string_fmt_append(g, "%.3s-LIMITS", smtp_code); if (smtp_mailcmd_max > 0) g = string_fmt_append(g, " MAILMAX=%d", smtp_mailcmd_max); - if (recipients_max > 9) + if (recipients_max_expanded > 0) g = string_fmt_append(g, " RCPTMAX=%d", recipients_max_expanded); g = string_catn(g, US"\r\n", 2); } -- 2.30.2