Comments (11)
Thanks! Now it should work correctly
from mail.
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.
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.
Milo, can you try to send files named "
, \
and x
? I am unable do it on Windows (except the third).
from mail.
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.
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.
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.
Thanks!
from mail.
Just to be sure, can you check also \
alone?
from mail.
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.
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)
- SMTP server did not accept STARTTLS with error: 503 5.5.2 Send hello first HOT 12
- Spam report: BASE64_LENGTH_79_INF HOT 1
- $mail-addTo($email) can array? HOT 1
- SMTP login with blank password
- Envelope address passed to sendmail HOT 3
- Backtrack limit was exhausted with base64 encoded image HOT 2
- Message serializator HOT 2
- Only variables should be passed by reference HOT 1
- Undefined variable $response in EHLO exception in SmtpMailer
- Type error in Message->getPriority()
- imgName(1).jpg on embedded
- Support self-signed certificates HOT 2
- To: undisclosed-recipients HOT 2
- SendmailMailer: Impossible to set commandArgs HOT 1
- IMAP wrapper rewrite request HOT 1
- [Documentation] HOT 1
- Unable to send email using SendmailMailer in v4.0.2 HOT 6
- Embed file are not catched
- DKIM - Header 'Subject' is not signed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail.