Koozali.org: home of the SME Server

Webmail sets incorrect mime types?

Offline levien

  • **
  • 26
  • +0/-0
Webmail sets incorrect mime types?
« on: March 12, 2008, 10:39:46 PM »
The Horde webmail application on our SME 7.2 server seems to set the mime-type for attachments incorrectly. For instance, office documents attached using webmail get the type text/plain, sometimes causing them to be opened in a text-editor on the recipient side.

I remember reading about similar problems on the forum some time ago, but can't find it anymore. Does anyone know what could be causing this, and how to solve it? We've just switched to PHP 5, but as far as I know the mime-type thing has been a problem on our server for quite some time...

Thanks,
Levien


Offline pfloor

  • *****
  • 889
  • +1/-0
Re: Webmail sets incorrect mime types?
« Reply #1 on: March 12, 2008, 11:22:48 PM »
Please clarify:
Quote
office documents attached using webmail

Do you mean that if you attach a .doc document to a message from within webmail and send it with webmail that the recipient gets the wrong mime type

OR

Do you mean a message in webmail sent by someone else with a .doc attachment has the wrong mime type.

In life, you must either "Push, Pull or Get out of the way!"

Offline levien

  • **
  • 26
  • +0/-0
Re: Webmail sets incorrect mime types?
« Reply #2 on: March 12, 2008, 11:42:47 PM »
Please clarify:
Do you mean that if you attach a .doc document to a message from within webmail and send it with webmail that the recipient gets the wrong mime type
OR
Do you mean a message in webmail sent by someone else with a .doc attachment has the wrong mime type.

As far as I know, the first. The problem seems to be with documents sent from within the webmail.
However, I just tested it (using Firefox 2.0 on my Ubuntu system), and the attached Excel file got the correct MIME-type. Hmm. Yet I keep getting these reports of incorrect MIME-types on office docs from people who use the webmail regularly (usually from Windows). Could this be a browser or OS specific issue?

Best regards,
Levien

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Webmail sets incorrect mime types?
« Reply #3 on: March 13, 2008, 01:23:49 AM »
The Horde webmail application on our SME 7.2 server seems to set the mime-type for attachments incorrectly.

Don't report problems here- Please report bugs and potential bugs in the bug tracker

Offline levien

  • **
  • 26
  • +0/-0
Re: Webmail sets incorrect mime types?
« Reply #4 on: March 13, 2008, 01:39:12 AM »

Don't report problems here- Please report bugs and potential bugs in the bug tracker

I will, if I manage to replicate it.  :?

Best regards,
Levien