Hello!
On Fri, 21 Feb 2025 at 01:54:22 (+0100), Slawomir Dworaczek via Exim-users
wrote:
> unfortunately I've been fighting with it for a good 3 hours :)
argh, probably `and' should be enclosed in additional bracket pair (I
personally try to avoid this complex expressions though):
condition = ${if
or {
{!def:h_X-Bogosity:}
{
{ and {
{def:h_X-Bogosity:}
{match{$h_X-Bogosity:}{^Spam}}
{!match{$h_from:}{lsearch{/etc/exim/listy_acl/bogo_list}}}
{!match{$sender_address_domain:}{lsearch{/etc/exim/listy_acl/bogo_list}}}
}}
}
}
{true}{false}
}
> failed to expand condition "${if or {{!def:h_X-Bogosity:}{ and
> {{def:h_X-Bogosity:}{match{$h_X-Bogosity:}{^Spam}}{!match{$h_from:}{lsearch{/etc/exim/listy_acl/bogo_list}}}{!match{$sender_address_domain:}{lsearch{/etc/exim/listy_acl/bogo_list}}}}}}{true}{false}}"
>
> for maildir_spam_bosity router: missing } at end of condition inside "or"
> group
> ----- Original Message -----
> From: "George L. Yermulnik via Exim-users" <[email protected]>
> To: <[email protected]>
> Sent: Friday, February 21, 2025 1:36 AM
> Subject: [exim] Re: please check the condition
> > Hello!
> > On Fri, 21 Feb 2025 at 01:08:07 (+0100), S??awomir Dworaczek via
> > Exim-users wrote:
> >> where is the error
> >> condition = ${if or { {!def:h_X-Bogosity:} } { {and {def:h_X-Bogosity:}
> >> {match{$h_X-Bogosity:}{^Spam}}
> >> {!match{$h_from:}{lsearch{/etc/exim/listy_acl/bogo_list}}}
> >> {!match{$sender_address_domain:}{lsearch{/etc/exim/listy_acl/bogo_list}}}}
> >> }}
> >> {true}{false}}
> >> error curly-bracket problem in conditional yes/no parsing: did not close
> >> with '}'
> >> regards
> > Should probably be something like this? (need verification)
> > Split to miltiline with indentation for simplicity.
> > condition = ${if
> > or {
> > {!def:h_X-Bogosity:}
> > {
> > and {
> > {def:h_X-Bogosity:}
> > {match{$h_X-Bogosity:}{^Spam}}
> > {!match{$h_from:}{lsearch{/etc/exim/listy_acl/bogo_list}}}
> > {!match{$sender_address_domain:}{lsearch{/etc/exim/listy_acl/bogo_list}}}
> > }
> > }
> > }
> > {true}{false}
> > }
> > --
> > George L. Yermulnik
> > [YZ-RIPE]
> > --
> > ## subscription configuration (requires account):
> > ##
> > https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
> > ## unsubscribe (doesn't require an account):
> > ## [email protected]
> > ## Exim details at http://www.exim.org/
> > ## Please use the Wiki with this list - http://wiki.exim.org/
--
George L. Yermulnik
[YZ-RIPE]
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/