Re: [exim] raw mime_filename

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jasen Betts
Data:  
Para: exim-users
Assunto: Re: [exim] raw mime_filename
On 2022-10-13, Mikhail Golub via Exim-users <exim-users@???> wrote:
> Hi.
>
> How can I get "raw" $mime_filename ?
>
> In Exim - "headers_charset = UTF-8".
> And if file name of attachment not in utf8 i have a problem with log
> display.
> Example from log, $mime_filename:
> "▒▒▒▒▒▒ ▒▒▒ 12_10_22.xlsx"
>
> I could use ... embedded Perl (use Encode).
> If i got raw mime_filename ...
>
> Or can you recommend an easier way get filename in log in utf8 encoding?


nothing that can be relied upon.

last week I saw an attachment with lots of high-bit bytes in the
filename, not UTF-8, and no explicit announcement of the character set.

deny
condition = $if(eq{$mime_filename}{${utf8clean:$mime_filename}{no}{yes}}
message=unnaceptable attachment filename please follow RFC

--
Jasen.