[exim] Re: Show regex capture group in logs?

Pàgina inicial
Delete this message
Reply to this message
Autor: Slavko
Data:  
A: exim-users
Assumpte: [exim] Re: Show regex capture group in logs?
Dňa 16. mája 2023 21:05:49 UTC používateľ MRob via Exim-users <exim-users@???> napísal:

>I wasnt sure which is best. In this situation temp variable getting set every time *even if set to undefined* correct? So I understand it should not matter what variable to use, right?


Yes, you can (re)set variables to new (even empty) value
anywhere in ACL, the previous value is not took into
account, nor empty, nor non-empty, just the new one.

>If you do a few in a row it's not a problem right?


Yes and no, it depends on your ACLs. You must consider,
that not always are ACLs as simple, as in your examples and
often multiple (different) conditions can take into account
before value will be set, thus particular setting can be
skipped and variable remains its previous value. Sometime
it doesn't matter as condition willl be skipped too, but you
can test that value on different places, not just after it is set.
In other words, here is not one universal answer for that...

The acl_c (and acl_m too) are cleared when connection is
closed, thus on new connection are both empty (the "c"
is for connection).

The acl_m variables are cleared when new session (message)
starts, basically with new MAIL SMTP command (the "m"
is for message).

In all other cases it is your responsibility...

regards


--
Slavko
https://www.slavino.sk/

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/