What is MIME ?
In the past, E-Mail over the internet was mainly ASCII oriented. The majority of mail transfer technology was and still is only capable of processing such ASCII messages reliably. ASCII however, does not suit the needs of modern communication. Images, formatted text, audio and video are sent more and more using E-Mail technology. And they rarely use ASCII for their native format. Therefore, such messages need to be translated to ASCII before they can be processed by the various mail transfer agents across the internet. One such translation is MIME (Multipurpose Internet Mail Extensions) and it is becoming the internet standard of processing such non-ASCII messages.
A MIME message is composed of one or more parts (also called attachments). The parts are independent of one another. So it is possible to have a MIME message that consists of text parts, image parts, audio parts, formatted text parts, ... all combined in one mail message. Each part is translated to ASCII if it needs to be. There are several ways of doing this translation, base 64 and quoted printable being the most used ones. Thus a MIME message part is characterized by its type (image, video, ...) and by the encoding used to translate the native format of that type (which is probably binary data) to plain ASCII that is suited to be mailed over the internet. This characterization is presented in the header of each part, such that it can be decoded and interpreted when received.
In order to have a structured representation of all sorts of binary data that is sent, the type information of a part consists of 2 elements : the type and the subtype. The type characterizes the part in a general way: is it an image, a video, audio, (binary) data to be interpreted by a specific application, ... . The subtype characterizes a specific type in more detail: is an image in gif, jpeg, ... ; is it an mpeg video or avi, ... ; is the data intended for MS Word, MS Excell, Acrobat, ... . Some applications have their own subtype, whereas others just use the more general octet-stream subtype to indicate that it is binary data to be interpreted in some way.
One such part thus consists of some headers and the (encoded) content and looks like:
Content-Type: application/octet-stream; name="word.doc"
Content-Transfer-Encoding: base64
Content-Description: word.doc (Microsoft Word Document)
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPg ...
This part says it is encoded using base64 and it is binary data (an octet-stream) to be interpreted as a MS Word document. The (seemingly) random content is in fact the binary data encoded such that it is plain ASCII.
A MIME mail message built from one such part needs no other information in order to be correctly interpreted. The headers of the (only) part are an integral part of the mail headers. A MIME message consisting of several parts, is characterized as such by specifying it as a multipart message with mixed parts. Thus the Content-Type header of the mail message itself says multipart/mixed and it uses a specific boundary string that is used to delimit the individual parts. This boundary string is used on a line on itself between each part. Each part then has its own headers following that boundary line, characterizing it as explained above. Such a multipart MIME messages thus looks like:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="Multipart Fri Jun 27 16:58:44
1997"
Content-Transfer-Encoding: 7bit
--Multipart Fri Jun 27 16:58:44 1997
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Dit is het eerste deel : tekst
--Multipart Fri Jun 27 16:58:44 1997
Content-Type: image/gif
Content-Transfer-Encoding: base64
R0lGODlhiQCWAIcAAAAAAAAAMwAAZgAAmQAAzAAA/zMAADMAMzMAZjMAmTMAzDMA/2YAAGYA
...
--Multipart Fri Jun 27 16:58:44 1997
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Dit is het laatste deel.
--Multipart Fri Jun 27 16:58:44 1997--
So whenever you see a mail message like this, you know it is MIME encapsulated and that it is not intended to be read as it is. You should first decode it and then look at the different parts in it in the proper way, using tools that present them in their native format.
You can go on and read about how to deal with MIME mail messages in this text.
Or you can search the WWW for more information about MIME. Another MIME tutorial can be found on http://www.sousystems.com/faq/mime_tutorial.html. It might be a good starting point for you in your quest for more information. It explains in short what MIME is and how it is used in e.g. netscape.

