On Sep 30, 2026, at 6:43 AM, Matus UHLAR - fantomas via Postfix-users 
<[email protected]> wrote:
Sorry!

This has to be

/^([^+]*)(\+.*)?@(.*)$/        $1@$3

Perl supports syntax

/^([^+]*)(?:\+.*)?@(.*)$

... add trailing / there but that's not important right now.

On 01.10.26 02:56, Dan Mahoney via Postfix-users wrote:
This is starting to look like the last MTA I used :)

let me guess: did it have full Turing machine implemented?

However, regular expressions are complicated but powerful.
The original:

/(.*)/  $1

would work as well, but not for mail from plussed addresses (unless you use plus within SASL), that's why we use trick above

--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Atheism is a non-prophet organization.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to