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

Pàgina inicial
Delete this message
Reply to this message
Autor: Victor Ustugov
Data:  
A: Slavko via Exim-users
Assumpte: [exim] Re: Completely remove any name in From: header for inbound email?
Slavko via Exim-users wrote on 26.05.2023 23:32:
> Dňa 26. mája 2023 17:28:41 UTC používateľ Victor Ustugov via Exim-users <exim-users@???> napísal:
>
>> Please show me how you are going to extract the address without the
>> regular expression from the header shown above.
>
> Just curious, can you share your regex for address extracting?


Something like this:

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


Jeremy showed the variant with ${addresses:

This one is better than ${address:

But he can't do it either:

From: postmaster@??? <charles@???>

And I know that the correct variant is:

From: "postmaster@???" <charles@???>

Jeremy Harris wrote on 13.04.2023 at 10:36: "A mail sender could send
you *anything*". And I have to consider how *SOME* MUAs and *SOME*
webmails work.

You can do as you wish.


> regards
>
>



--
Best wishes Victor Ustugov
mailto:victor@corvax.kiev.ua
public GnuPG/PGP key: https://victor.corvax.kiev.ua/corvax.asc

--
## 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/