https://bugs.kde.org/show_bug.cgi?id=378007
Bug ID: 378007
Summary: Cannot display attached files for some weir
content-type
Product: kmail2
Version: 4.14.10
Platform: Fedora RPMs
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: commands and actions
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
I am reading some email with a pdf file attached.
If I save the pdf in my home dir, I can open it without problem
If I click on the attachment to open it from kmail, I have some display bugs.
In fact, the temporary pdf file in /tmp/kde-*/kmail2*/ is corrupted; it is
shorter than it should be. In fact, after a more careful look, every sequence
of CRLF (0x0d 0x0a) has been replaced by LF (0x0a) in the binary pdf file, as
though dos2unix -f had been run on it.
In the email, I have the following contents-line for the attachment:
--------------050809070702050207010502
Content-Type: =?windows-1252?q?application/pdf;
name="XXX.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="XXX.pdf"
Notice the windows-1252. For another mail where the Content-Type is
Content-Type: application/x-pdf;
then everything works perfectly.
I am not familiar with mime rules, and possibly the email I was sent is faulty.
But kmail should know enough to not run filters designed for text files on
binary files.
When googling the problem, I see that thunderbird had the same problem six
years ago; see https://bugzilla.mozilla.org/show_bug.cgi?id=659355
--
You are receiving this mail because:
You are the assignee for the bug.