Mailing List Archive

Recipient information
Hello,

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.

Thank you in advance.

* Ygor Fernandes
* Suporte Técnico
* at; iPORTO.COM <http://iporto.com/> - Soluções em Cloud Computing
* ygor@iporto.com
* iPORTO: 51 3135.7676
* Horário de Atendimento: Das 08h12 às 18h
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##
Re: Recipient information [ In reply to ]
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.

--
Cheers,
Jeremy

--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim details at http://www.exim.org/ ##