[SOLVED] Header Content-Disposition name problem - filename show base64

Raito00

Active Member
Sep 10, 2019
28
2
43
44
Hello! - HELP!
I have problem with filenames when receiving file attachments with special characters and filename is longer 25 characters.
file attachment name showing base64 as filename but looks like it is broken base64 ...
1733760678035.png

header part:
Code:
------=_Part_14491_773342125.1733758206187--

------=_Part_14492_1682898179.1733758206187
Content-Type: application/edoc; 
    name*0="=?UTF-8?B?ZG9rdW1lbnRzLXBhcmFrc3TEq3RzLWFyLWRyb8WhdS1lcGFyYW"; 
    name*1="tzdA==?=
 =?UTF-8?B?YS1kcm/FoXUtcGFyYWtzdHVfdmlzc19zbGlrdGlfd"; 
    name*2="MSBbMWray5lZG9j?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment; 
    filename*=UTF-8''dokuments-parakst%C4%ABts-ar-dro%C5%A1u-eparaksta-dro%C5%A1u-parakstu_viss_slikti_t%C4%81l%C5%ABk.edoc

Looks like problem is with MIME header folding ..? wrong spaces or line breaks ???

System:
Mail Gateway 8.1.4
Kernel Version Linux 6.8.12-4-pve (2024-11-06T15:04Z)
 
Last edited:
could you please share:
* where does the broken mail show? - after passing through PMG, in your mail client, in the quarantine view?
* the logs of such a mail passing through PMG
* the complete e-mail as .eml (if you can reproduce it wit something simpler even better)
* else the complete headers of such a mail and the filename (unencoded)