Introduccion a mime

Páginas: 5 (1123 palabras) Publicado: 25 de marzo de 2012
Introduction to MIME
MIME (Multipurpose Internet Mail Extensions) is a standard which was proposed by Bell Communications in 1991 in order to expand upon the limited capabilities of email, and in particular to allow documents (such as images, sound, and text) to be inserted in a message. It was originally defined by RFCs 1341 and 1342 in June 1992.
Using headers, MIME describes the type ofmessage content and the encoding used.
MIME adds the following features to email service:
* Be able to send multiple attachments with a single message;
* Unlimited message length;
* Use of character sets other than ASCII code;
* Use of rich text (layouts, fonts, colours, etc)
* Binary attachments (executables, images, audio or video files, etc.), which may be divided ifneeded.
MIME uses special header directives to describe the format used in a message body, so that the email client can interpret it correctly:
* MIME-Version: This is the version of the MIME standard used in the message. Currently only version 1.0 exists.
* Content-type: Describes the data's type and subtype. It can include a "charset" parameter, separated by a semi-colon, defining whichcharacter set to use.
* Content-Transfer-Encoding: Defines the encoding used in the message body
* Content-ID: Represents a unique identification for each message segment
* Content-Description: Gives additional information about the message content.
* Content-Disposition: Defines the attachment's settings, in particular the name associated with the file, using the attributefilename.
Primary MIME types
MIME types, used in the Content-Type header, are used to classify documents attached to an email. A MIME type is comprised as follows:
Content-type: main_mime_type/mime_subtype
A GIF image, for example, has the following MIME type:
Content-type: image/gif
The primary data types, sometimes called "discrete data types," are:
*text: readable text data text/rfc822 [RFC822]; text/plain [RFC2646]; text/html [RFC2854] .
* image: binary data representing digital images: image/jpeg; image/gif; image/png.
* audio: digital sound data: audio/basic; audio/wav
* video: video data: video/mpeg
* application: Other binary data: application/octet-stream; application/pdf
MIME types are also used on the Web to classifydocuments transferred using the protocol HTTP. Thus during a transaction between a web server and a browser, the first thing the web server does is send the MIME type of the file to the browser, so that the browser knows how to display the document.
Encoding formats
To transfer binary data, MIME offers five encoding formats which can be used in the header transfer-encoding:
* 7bit: 7-bittext format (for messages without accented characters);
* 8bit: 8-bit text format;
* quoted-printable: Quoted-Printable format, recommended for messages which use a 7-bit alphabet (such as when there are accent marks);
* base64: Base 64, recommended for sending binary files as attachments;
* binary: binary format; not recommended.
Since MIME is very open, it can usethird-party encoding formats such as:
* BinHex (a proprietary format belonging to Apple),
* uuencode,
* xxencode
Header encoding
The transfer-encoding header is used to specify an encoding format for the message body, but it doesn't solve the problem of encoding headers themselves (such as the message subject).
To encode headers with character sets which use more than 7 bits, such asfor including accented letters in an email's subject, the MIME standard offers the following format:
=?charset?encoding?result?=
* charset represents the character set used,
* encoding defines the encoding desired with two possible values:
* Q for quoted-printable
* B for base64
* result: text encoded using the method specified.
Below is an example...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • mima
  • El mimo
  • MIMO
  • Mimo
  • Mimosas
  • Los Mimos
  • mimos
  • Mimo

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS