Ticket #1484887 (closed Bugs: worksforme)

Opened 9 months ago

Last modified 9 months ago

Wrong Conten-Type when sending Word or Excel attachments

Reported by: francesco_r Owned by: till
Priority: 5 Milestone: 0.1.1
Component: MIME parsing Version: 0.1-stable
Severity: normal Keywords:
Cc:

Description

When i send a message with a .doc or .xls file attached, the the mime-type is wrong:

Content-Type: text/plain;

But when i send a PDF the type is correct:

Content-Type: application/pdf;

I use Centos 4 with PHP5.1.6 and Mysql5. Another Webmail application installed in the same server send the email with mime-type correctly so i suppose is a RC problem and not a server configuration issue. Thank you.

Change History

Changed 9 months ago by thomasb

Issue of our new file-type detection?

Changed 9 months ago by till

  • owner set to till
  • status changed from new to assigned

I am trying to reproduce, have to find a .doc first. :D

So far it works with everything else.

Changed 9 months ago by till

  • status changed from assigned to closed
  • resolution set to worksforme
Content-Transfer-Encoding: base64
Content-Type: application/msword; name="till.doc"; charset="UTF-8"
Content-Disposition: attachment; filename="till.doc"

Workz. ;-)

Re-open if you can supply a file that doesn't work.

Also, the detection system relies on Fileinfo, and it uses the standard form data for failover. So this shouldn't produce new issues since when Fileinfo is not working, it should work just like it did before.

Note: See TracTickets for help on using tickets.