[vox-tech] what is mime?

Henry House vox-tech@lists.lugod.org
Wed, 12 Dec 2001 10:04:13 -0800


--OwLcNYc0lM97+oe1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 10, 2001 at 10:43:50PM -0800, Ted Deppner wrote:
> On Mon, Dec 10, 2001 at 08:43:34AM -0800, Peter Jay Salzman wrote:
> > i think mime provides a logical division of an email based on content -=
- like
> > an attachment or a gpg signature, and this allows mail clients to deal =
with
> > the material in an appropriate manner.
>=20
> Dead on.  Mime is two logically separate components, one is MIME encoding,
> taking binary or unicode data and encoding it to ASCII.  The other is the
> Multipart encapsulation of data.  (Yes, it is possible to use one without
> the other.)
>=20
> There are some other tidbits and extensions, but that's the heart of it.

MIME is a standard for encapsulating arbitrary data (8-bit latin-1 text,
HTML, 16-bit Chinese text, MP3 sound, JPEGs, anything at all) inside a
seven-bit plain-text e-mail message that is compatible with the decades-old
Internet mail transport protocols. To identify the type of data being
transmitted, MIME defines standard character encoding names (like US-ASCII)
and standard name for data types (like image/jpeg or application/pgp-signat=
ure).

By comparing the MIME type of an incoming attachment to a list of local
programs that understand certain mime types (typically /etc/mailcap or
~/.mailcap), a mail user agent can (hopefully) do something appropriate with
the attachment, e.g., display a PDF using Xpdf.

MIME goes further and provides a mechanism to define the relationship betwe=
en
segments of data in a message, e.g., HTML and text attachments coud be
defined as alternatives to each other, or a PGP signature could be defined =
as
equal in weight to the grouping of other attachments in the message
(indicating that both the text and JPEG attachment that make up the rest of
the message are signed). MIME-aware mail user agents (like Mutt) are able to
exploit this to handle mail more intelligently.

MIME is defined by a bunch of RFCs: RFC-2046, RFC-1524, and others.

--=20
Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/p=
gp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

--OwLcNYc0lM97+oe1
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8F5wdKK1cAVjXujwRAp5uAJ4xisgXEM/GsMqqi1TcIBH7ttO59ACfSlwi
Eo5EXEPdrzeFHp52YoTMLPA=
=XzRz
-----END PGP SIGNATURE-----

--OwLcNYc0lM97+oe1--