On 06/05/2022 18:05, Andrew C Aitchison via Exim-users wrote:
Does this help ?
{${sg{$local_part_suffix}{-(bounces|confirm|join|leave|owner|request|admin)(\\+.*)?}{\$1}}}
\
${sg } is not clever enough to realise that the RE and substring are, in this
case,
selecting a list of static strings. Therefore it cannot be used as a de-taint
mechanism.
Instead, use "inlist" :-
${if inlist {$local_part_suffix} {-bounces : -confirm : -join} {$value}}
(obviously, with whatever elements in the list are needed).
The facility was described in the Newstuff file.
If the removal of a further suffix (the "(\\+.*)?" in the RE above
is needed, do that before doing the list-match.
--
Cheers,
Jeremy
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/