Re: [exim] Catch friendly Name from $h_from

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-users
Betreff: Re: [exim] Catch friendly Name from $h_from
Hi,

keep in mind that From: may contain multiple addresses.
(But, actually, DMARC restricts it to have only one address.)


Mueller via Exim-users <exim-users@???> (Mi 08 Dez 2021 07:45:10 CET):
> I try to catch the friendly name from within $h_from (ex h_from:
> "Tester"<tester@???>).
> I have set it in acl_check_data with no success:


>    condition = ${if match{$h_from:}{"tester.*<"}}


> What do I miss?


"match" is case sensitive.

    exim -bem /tmp/eml '${if match{$h_from:}{tester.*<}}'


vs.

    exim -bem /tmp/eml '${if match{$h_from:}{(?i)tester.*<}}'


(with a given /tmp/eml containing nothing more than
    From: Tester <tester@???>
)


    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
--
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -