Autore: Jeremy Harris Data: To: exim-dev Oggetto: Re: [exim-dev] Recipient information
On 19/02/2020 20:32, Ygor Fernandes via Exim-dev wrote: > I have the following doubt, is it possible within acl_check_rcpt, the total
> number of recipients?
>
> I try to use the variables $ rcpt_count and $ recipients_count but these do
> not have the full value right away, but when forwarded to acl_check_data.
The docs say:
"When a message is being received by SMTP, this variable contains the
number of RCPT commands received for the current message. If this
variable is used in a RCPT ACL, its value includes the current command."
Given that in the rcpt acl you are still receiving the list of
recipients, you cannot have the full list yet so you cannot
know how many the eventual total will be. On the last call
to the rcpt acl, the value will be the eventual total... but
you cannot know at that point that it will be the last one.