Re: [exim] From header with encoding not parsed?

Página Inicial
Delete this message
Reply to this message
Autor: Victor Ustugov
Data:  
Para: Slavko via Exim-users
Assunto: Re: [exim] From header with encoding not parsed?
Slavko via Exim-users wrote on 12.04.2023 22:38:

>>>> Hi, I have a variable to extract the email address in from header set like this:
>>>>
>>>> ${lc:${address:$h_From:}}
>>>
>>> Header is valid, but after decoding it contains comma without
>>> qoutes, the comma is address separator and thus results in
>>> list of two "addresses", first without valid address, thus empty...
>>>
>>> Use raw header for address extracting -- $rh_From: that works
>>> for both, quoted and encoded content...
>>
>>
>> What about the colon without encoding?
>>
>> From: =?utf-8?Q?My=20Bizness:=20Inc.?= <charles@???>
>
> AFAIK colon have to be encoded, quote from by RFC 2047, section
> 5 (the From: and similar):
>
>     characters that may be used in a "Q"-encoded 'encoded-word' is
>     restricted to: <upper and lower case ASCII letters, decimal digits,
>     "!", "*", "+", "-", "/", "=", and "_">


I'm not talking about what should be encoded, but about what can be
received in a real email from a spammer, some kind of script or
something like that.


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