Any fix for wrong mime type encoding for outgoing attachments?

Mail, both in Tiger and now in Leopard, gives some outgoing file attachments (particularly Word and Excel files) the (?default) mime type 'application/octet-stream' instead of the correct mime type e.g. 'application/msword'. This has not always happened (both in Tiger and Leopard) but something has made Mail change its mime type encoding. This occurs even with the correct file extensions, and send windows friendly attachments selected.

Some e-mail clients can still recognize and interpret the attachments correctly, but others do not.

If an attachment is received (or is in a mailbox) that has the correct mime type then it can be dragged to another message and keep the correct mime type. However if it is copied to the desktop and then reattached to a new message it ends up with the octet-stream mime type instead. (If it is dragged from the desktop onto the new message, as opposed to using the attach button, it ends up with a null mime type, but that appears to be a different bug - it did not occur in Tiger.)

Is there a database somewhere that Mail uses to look-up the mime type for a particular file type/extension? If so I might be able to edit it to correct the mime type allocation. A search for file names containing 'mime' using File Buddy shows a number of files, none of which is an obvious candidate. Also some of these files appear to be encoded as opposed to plaintext which would make them very difficult to edit.

Any help would be much appreciated.

iMac G5, Mac OS X (10.5.2)

Posted on Apr 13, 2008 8:10 PM

Reply
15 replies

Apr 15, 2008 11:55 PM in response to Michael Swarbrick

hi there

same problem here. everything I send gets turned into am mime type 'application/octet-stream' file. If I open the file it's just plain text.

I tried this with .emlx,.pdf,.jpg,.zip and the same happend. Mail also changes the the name of the attachment to a number...the size remains unchanged

very strange, hope somebody can help!

thanks, simon

May 25, 2008 4:47 AM in response to Gurudgo

I successfully send (as do most other people) such attachments all the time. More is at work than a problem in Mail with your situation. All such attachments are Mime, but are only said to be when the file type cannot be determined for some reason.

Have you tried using only Plain Text, rather than Rich Text Format, including either no Signature or Plain Text Signature?

Are you using an Exchange Server and account?

More info, please.

Ernie

May 25, 2008 6:10 PM in response to Gurudgo

It has never been a good idea to attachment new files in a Reply, with any email client. But if the original message had RTF or even HTML, then a Reply with new attachments added can be problematic.

Outlook doesn't like RTF very much, and does a poor of sending it also.

When sending to those using Outlook or Outlook Express, use only new messages to send attachments, and use Plain Text. Also when sending to those using AOL, which can't handle RTF at all.

Ernie

Jul 24, 2008 2:39 AM in response to Simon Tännler

No I am not really getting anywhere with it. I have established using MisFox that the OS has the correct mime type mapping for Word files, but Mail is still not mapping the mime type correctly. Either it has a separate incorrect mapping database, which I cannot find, or it is not finding the mapping correctly in the database and using the default mapping instead.

I am not sure how to progress any further without some inside information about how Mail works.

Jul 9, 2009 4:43 AM in response to Michael Swarbrick

I think that the Mac OS uses information contained in installed application packages to generate a database of which applications can open which file types. Mail then uses this to assign mime types to attachments.

Certainly ever since I installed a copy of Microsoft Office, Mail has been assigning the correct mime type to .doc files.

It is a shame that there is no easy way to add the appropriate details to this database without having the corresponding application installed.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Any fix for wrong mime type encoding for outgoing attachments?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.