[exim] Different ACL Condition Combinations

2023-05-16 Thread MRob via Exim-users
I think one combine boolean conditions sevral ways. Are these all same? Is there performance reasons or functional reason to choose which one--- or is it no different, only choose for readability? warn condition = ${if } condition = ${if } warn condition = ${if and {{}{}}} wa

[exim] Re: Different ACL Condition Combinations

2023-05-16 Thread Jeremy Harris via Exim-users
On 16/05/2023 12:58, MRob via Exim-users wrote: Is there performance reasons Too minor to care about. -- Cheers, Jeremy -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/ ## unsubscribe (doesn't require an acco

[exim] Re: Different ACL Condition Combinations

2023-05-16 Thread Slavko via Exim-users
Dňa 16. mája 2023 11:58:36 UTC používateľ MRob via Exim-users napísal: >warn condition = ${if {${if }}fail} > Beware, this one differs from previous two by forced fail of the first condition. from docs: if the expansion is forced to fail, the condition is ignored. The effect is to

[exim] Re: Different ACL Condition Combinations

2023-05-16 Thread MRob via Exim-users
On 2023-05-16 12:28, Slavko via Exim-users wrote: Dňa 16. mája 2023 11:58:36 UTC používateľ MRob via Exim-users napísal: warn condition = ${if {${if }}fail} Beware, this one differs from previous two by forced fail of the first condition. from docs: if the expansion is forced to fa

[exim] Show regex capture group in logs?

2023-05-16 Thread MRob via Exim-users
Hi, I want to capture part of a regex match (capture group) to put in logs. This example using subject header works but is there a better way? warn set acl_c_temp = ${if match{$h_Subject:}{group>}{$1}{none}} !condition = ${if eq{$acl_c_temp}{none}} logwrite = Notice: subject match is:

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

2023-05-16 Thread Jeremy Harris via Exim-users
On 16/05/2023 20:36, MRob via Exim-users wrote: Hi, I want to capture part of a regex match (capture group) to put in logs. This example using subject header works but is there a better way? warn set acl_c_temp = ${if match{$h_Subject:}{}{$1}{none}} !condition = ${if eq{$acl_c_temp}{none}

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

2023-05-16 Thread Slavko via Exim-users
Dňa 16. mája 2023 19:36:00 UTC používateľ MRob via Exim-users napísal: >Hi, I want to capture part of a regex match (capture group) to put in logs. >This example using subject header works but is there a better way? > >warn set acl_c_temp = ${if match{$h_Subject:}{group>}{$1}{none}} > !condi

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

2023-05-16 Thread Andrew C Aitchison via Exim-users
On Tue, 16 May 2023, MRob via Exim-users wrote: Hi, I want to capture part of a regex match (capture group) to put in logs. This example using subject header works but is there a better way? warn set acl_c_temp = ${if match{$h_Subject:}{group>}{$1}{none}} !condition = ${if eq{$acl_c_temp}

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

2023-05-16 Thread Jeremy Harris via Exim-users
On 16/05/2023 21:08, Andrew C Aitchison via Exim-users wrote: Since it is just conditional logging of a header would a system filter be the place for this ? The basic exim config can do it. There's no good reason to take that filter cost (stepping back one thread...) -- Cheers, Jeremy --

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

2023-05-16 Thread MRob via Exim-users
On 2023-05-16 20:05, Slavko via Exim-users wrote: Dňa 16. mája 2023 19:36:00 UTC používateľ MRob via Exim-users napísal: Hi, I want to capture part of a regex match (capture group) to put in logs. This example using subject header works but is there a better way? warn set acl_c_temp = ${if m

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

2023-05-16 Thread MRob via Exim-users
On 2023-05-16 20:08, Andrew C Aitchison via Exim-users wrote: On Tue, 16 May 2023, MRob via Exim-users wrote: Hi, I want to capture part of a regex match (capture group) to put in logs. This example using subject header works but is there a better way? warn set acl_c_temp = ${if match{$h_Sub

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

2023-05-16 Thread Jeremy Harris via Exim-users
On 16/05/2023 22:05, MRob via Exim-users wrote: If you do a few in a row it's not a problem right? Correct; new assignments just overwrite. -- Cheers, Jeremy -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/

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

2023-05-16 Thread Slavko via Exim-users
Dňa 16. mája 2023 21:05:49 UTC používateľ MRob via 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