Does not recognize attachments
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: ddan39, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
Receive emails. The email is being sent through the postfix+dovecot email server from a java application.
Actual results:
I receive the emails, can view the body, but even though there are attachments, thunderbird does not say there are any attachments. I am not sure if this is caused by the JavaMail or email server settings. When I look at View Source I can see the attachments are there, it looks like:
From: test@example.com
To: test2@example.com
Message-ID: <1447624068.59.1553179882982.JavaMail.myapp@myserver>
Subject: test email with attachment
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_57_217068572.1553179882436"
------=_Part_57_217068572.1553179882436
Content-Type: application/octet-stream;
name=test.pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=test.pdf
JVBERi0xLjQKJ...
rest of attachment ... VFT0YK
------=_Part_57_217068572.1553179882436
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Please see attached pdf.
------=_Part_57_217068572.1553179882436
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML>
<html>
<head>
<title>
... more html...
</body>
</html>
------=_Part_57_217068572.1553179882436--
Expected results:
can see the attachment. in other email clients (Evolution, roundcube, gmail) I can see the attachments fine.
Comment 1•6 years ago
|
||
That e-mail has an incorrect MIME structure. multipart/alternative is for multiple alternative display parts, typically plaintext and HTML. For attachments, multipart/mixed must be used.
It's a bit like bug 1367973, but I've never seen the attachment part come first.
This won't be fixed in the foreseeable future, so please contact the producers of that e-mail and tell them to read the MIME specs :-(
Description
•