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
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
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
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
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:
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}
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
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}
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
--
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
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
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/
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
13 matches
Mail list logo