Re: [exim] raw mime_filename

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Andrew C Aitchison
Dátum:  
Címzett: Mikhail Golub
CC: exim-users
Tárgy: Re: [exim] raw mime_filename
On Fri, 14 Oct 2022, Mikhail Golub via Exim-users wrote:

> One more example.
>
> In letter:
> Content-Description: =?windows-1251?B?wvXu5F/C+/Xu5C54bHN4?=
>
> In $mime_content_description:
> =?windows-1251?b?wvxu5f/c+/xu5c54bhn4?=
>
> Compare it:
> =?windows-1251?B?wvXu5F/C+/Xu5C54bHN4?=
> =?windows-1251?b?wvxu5f/c+/xu5c54bhn4?=


I have a script https://www.aitchison.me.uk/clearsubject.pl
piping the above though it gives:
----------------------------------
In letter:
Content-Description: Вход_Выход.xlsx

In $mime_content_description:
ВьnеяЬыьnеОxnш

Compare it:
Вход_Выход.xlsx
ВьnеяЬыьnеОxnш
----------------------------------

So $mime_content_description: has not preserved the case of the encoded text,
which means that the decoded version is wrong !

However, Jeremy said you should be looking at $mime_content_disposition
- does this preserved case ?
Note: the variable should contain the text of the continuation lines, nut
just the first line of this header.

> On 14.10.2022 12:47, Mikhail Golub via Exim-users wrote:
>> ok.
>>
>> Given in letter:
>> Content-Description: Elinta Charge CityCharge WiFi configuration.pdf
>>
>> I got this in $mime_content_description:
>> elintachargecitychargewificonfiguration.pdf
>>
>>
>>
>> On 14.10.2022 12:38, Jeremy Harris via Exim-users wrote:
>>> On 14/10/2022 10:18, Mikhail Golub via Exim-users wrote:
>>>> What is meant by "normalized content"?
>>>
>>> Interpreting the sourcecode, it looks like:
>>> stuff up to the first ; is dropped, then a 2047-decode is done.
>>
>>
>
>
> --
> ## 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/
>


-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew@???