Re: [exim] exim-4.96RC0 - broken Mailman (2.x)

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] exim-4.96RC0 - broken Mailman (2.x)
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