Code Monkey home page Code Monkey logo

Comments (11)

dg avatar dg commented on May 20, 2024 1

Thanks! Now it should work correctly

from mail.

milo avatar milo commented on May 20, 2024

It is hard to find some RFC for such situation. So, to find some working solution, I use Thunderbird. So I sent attachment named jůůůžě.txt via Thunderbird and GMail SMTP and I got:

Content-Type: text/plain; charset=UTF-8;
 name="=?UTF-8?B?asWvxa/Fr8W+xJsudHh0?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename*=UTF-8''%6A%C5%AF%C5%AF%C5%AF%C5%BE%C4%9B%2E%74%78%74

from mail.

milo avatar milo commented on May 20, 2024

And this is via. GMail web interface:

Content-Type: text/plain; charset="UTF-8"; name="=?UTF-8?B?asWvxa/Fr8W+xJsudHh0?="
Content-Disposition: attachment; filename="=?UTF-8?B?asWvxa/Fr8W+xJsudHh0?="
Content-Transfer-Encoding: base64
Content-ID: <f_kfz6pkr50>
X-Attachment-Id: f_kfz6pkr50

from mail.

dg avatar dg commented on May 20, 2024

Milo, can you try to send files named ", \ and x? I am unable do it on Windows (except the third).

from mail.

milo avatar milo commented on May 20, 2024

Third char sould be x? I tried ů"\?x.txt and this is a result of Thunderbird 78.3.1 on Debian 10:

Content-Type: text/plain; charset=UTF-8;
 name="=?UTF-8?B?xa8iXD94LnR4dA==?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename*=UTF-8''%C5%AF%22%5C%3F%78%2E%74%78%74

Correctly seen as ů"\?x.txt attachment in Thunderbird on Windows and when trying to save it, Thunderbird replaces name to ů___x.txt.

from mail.

milo avatar milo commented on May 20, 2024

And how encoded by GMail webface:

Content-Type: text/plain; charset="US-ASCII"; name="=?UTF-8?B?xa8iXD94LnR4dA==?="
Content-Disposition: attachment; filename="=?UTF-8?B?xa8iXD94LnR4dA==?="
Content-Transfer-Encoding: base64
X-Attachment-Id: f_kfzgl8310
Content-ID: <f_kfzgl8310>

from mail.

milo avatar milo commented on May 20, 2024

When sending ".txt.
Thunderbird

Content-Type: text/plain; charset=UTF-8;
 name="\".txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="\".txt"

GMail

Content-Type: text/plain; charset="US-ASCII"; name="\".txt"
Content-Disposition: attachment; filename="\".txt"
Content-Transfer-Encoding: base64
Content-ID: <f_kfzgqenu0>
X-Attachment-Id: f_kfzgqenu0

from mail.

dg avatar dg commented on May 20, 2024

Thanks!

from mail.

dg avatar dg commented on May 20, 2024

Just to be sure, can you check also \ alone?

from mail.

milo avatar milo commented on May 20, 2024

Thunderbird "

Content-Type: text/plain; charset=UTF-8;
 name="\""
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="\""

\

Content-Type: text/plain; charset=UTF-8;
 name="\\"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="\\"

from mail.

milo avatar milo commented on May 20, 2024

And long ones (160 chars):
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
and
ž23456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789ž

in Thunderbird:

Content-Type: text/plain; charset=UTF-8;
 name="1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename*0="123456789012345678901234567890123456789012345678901234567890";
 filename*1="123456789012345678901234567890123456789012345678901234567890";
 filename*2="1234567890123456789012345678901234567890"
Content-Type: text/plain; charset=UTF-8;
 name="=?UTF-8?Q?=c5=be2345678901234567890123456789012345678901234567890123?=
 =?UTF-8?Q?45678901234567890123456789012345678901234567890123456789012?=
 =?UTF-8?Q?34567890123456789012345678901234567890123456789=c5=be?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename*0*=UTF-8''%C5%BE%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*1*=%38%39%30%31%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*2*=%38%39%30%31%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*3*=%38%39%30%31%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*4*=%38%39%30%31%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*5*=%38%39%30%31%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*6*=%38%39%30%31%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*7*=%38%39%30%31%32%33%34%35%36%37%38%39%30%31%32%33%34%35%36%37;
 filename*8*=%38%39%C5%BE

via GMail webface

Content-Type: application/octet-stream; 
	name=1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
Content-Disposition: attachment; 
	filename=1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
Content-Transfer-Encoding: base64
Content-ID: <f_kg0oa0110>
X-Attachment-Id: f_kg0oa0110
Content-Type: application/octet-stream; 
	name="=?UTF-8?Q?=C5=BE23456789012345678901234567890123456789012345678901234567?=
	=?UTF-8?Q?890123456789012345678901234567890123456789012345678901234567?=
	=?UTF-8?Q?890123456789012345678901234567890123456789=C5=BE?="
Content-Disposition: attachment; 
	filename="=?UTF-8?Q?=C5=BE23456789012345678901234567890123456789012345678901234567?=
	=?UTF-8?Q?890123456789012345678901234567890123456789012345678901234567?=
	=?UTF-8?Q?890123456789012345678901234567890123456789=C5=BE?="
Content-Transfer-Encoding: base64
Content-ID: <f_kg0oa04b1>
X-Attachment-Id: f_kg0oa04b1

from mail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.