On 2022-10-13, Mikhail Golub via Exim-users <exim-users@exim.org> 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. -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/