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 
> <[email protected]> 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: [email protected] <[email protected]>

And I know that the correct variant is:

From: "[email protected]" <[email protected]>

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:[email protected]
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):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to