WebGUI PDF email attachment wrong filename / file extension

Issue #1098 resolved
Kevin Lieser created an issue

I have sent some emails to my customers. These mails are archived in Piler. The got a short text, my signature in HTML and an attachment.

All these mails I have sent a few hours ago have the attachment link like “RE_2148.202008.pdfContent-Type: application/pdf” – also the downloaded file have the exact same filename – and i not readable with the file extension “pdfContent-Type: application/pdf”. When I remove “Content-Type: application/pdf” it is the regular PDF file.

As I see now all emails in the archive with PDF attachment have this problem.

Word or PNG files attached are displayed / linked / downloaded correctly.

The wrong filename is stored in the attachment table in database.


Problem 2:

I don’t know if this has something to with this problem (before I open a new ticket): These mails have no text (which I wrote with the attachment). Some of these mails a replied on emails which had conversations. The older conversations are displayed, but the text I wrote with the mail is also missing.

When I download the .eml file and open it I can see the whole email – attachment (correct) and the text I wrote that is missing in piler.

This problem is solved with pull request #20

I think it is because Apple Mail allows everywhere in the email to drop the attachment. And after the attachment starts a “new” part that get eached – so the text before that attachment is missing because only the last part get displayed.

Comments (14)

  1. Janos SUTO repo owner

    I’ve merged your pull request, thank you. Can you attach such a non sensitive email that I could see and fix the problem for myself?

  2. Thomas Helmrich

    I also have the issue, that pdf are named like `Angebot-133.pdfContent-Type: application/pdf`, but i not every time (Named with _ is ok, named with - not). I have the current patch installed.

  3. Thomas Helmrich

    The one has sensitive data that i do not like to post here, but would send it to you via mail or something like that.

    I could share another files, but both have failed (allthough of named with - and _)

  4. Log in to comment