[exim] Re: Completely remove any name in From: header for in…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Slavko
Datum:  
To: Slavko via Exim-users
Betreff: [exim] Re: Completely remove any name in From: header for inbound email?
Dňa 26. mája 2023 22:31:56 UTC používateľ Victor Ustugov via Exim-users <exim-users@???> napísal:

>
>${if
>eq{${address:$rh_From:}}{}{${sg{$rh_From:}{\N^.*<(\S+?@\S+?)>\s*\N}{\$1}}}{${address:$rh_From:}}}
>


Thanks, but do you know that is not perfect too? Eg. try
add "(comment)" after address and will match invalid
address... Some time ago i search email address regex
on Internet, and what i found as full RFC compliant
was horrible complicated, with questionable performance,
not manageable (i lost in it) and for ASCII only...

>But he can't do it either:
>
>From: postmaster@??? <charles@???>


That is IMO OK, as this will not pass header_syntax check,
thus one can consider that as expected to don't parse...

regards


--
Slavko
https://www.slavino.sk/

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/