A mailcap file can be used to find the correct program to open a file with, based on MIME MIME's use, however, has grown beyond describing the content of e-mail to describing content type in general, including for the web information. While the name is "mailcap" and is related to MIME MIME's use, however, has grown beyond describing the content of e-mail to describing content type in general, including for the web (mail filetypes) it actually has use outside the domain of electronic mail (see more about this in MIME MIME's use, however, has grown beyond describing the content of e-mail to describing content type in general, including for the web).

In UNIX-type systems, the mailcap file is usually located at /etc/mailcap and/or $HOME/.mailcap

RFC 1524 A User Agent Configuration Mechanism For Multimedia Mail Format Information describes the format of the contents of this file.

Lines can be comments starting with the # character, or a mime-type followed by how to handle that mime type. The first part is called the content-type, and the second part is called the view-command. For example video/mpeg; xmpeg %s says if a file encoded in mime has type video/mpeg, run the xmpeg program with the file name as a parameter.

mime.types

An associated file is the mime.types file, which associates filename extensions A filename extension is a suffix to the name of a computer file applied to indicate the encoding convention of its contents with a MIME type. If the MIME type is properly set, this is unnecessary, but MIME types may be incorrectly set, or set to a generic type such as application/octet-stream, and mime.types allows one to fall back on the extension in these cases. Similarly, since many file systems do not store MIME type information, but instead rely on the filename extension, a mime.types file is frequently used by web servers to determine MIME type.

When viewing a file, these two work together as follows: mime.types associates an extension with a MIME type, while mailcap associates a MIME type with a program.

In UNIX-type systems, the mime.types file is usually located at /etc/mime.types and/or $HOME/.mime.types and the format is simply that each line is a space-delimited list of a MIME type, followed by zero or more extensions. For example, the HTML HTML, which stands for HyperText Markup Language, is the predominant markup language for web pages. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items. It allows images and objects to be embedded and can be used to create interactive forms type can be associated with the extensions .htm, .html by the following line:

text/html htm html

Netscape use

The mime.types file dates to Netscape Netscape Communications is a US computer services company, best known for its web browser. When it was an independent company, its headquarters were in Mountain View, California. The name Netscape was a trademark of Cisco Systems, that was granted to the company, where it used a different format;[1] it used key-value pairs and a comma-separated list of extensions, together with a standard header, as follows.

#--Netscape Communications Corporation MIME Information
# Do not delete the above line. It is used to identify the file type.
type=text/html exts=htm,html

References

  1. ^ WEBMASTERS: mime types, John McAnally, Thu, 22 Jan 1998 15:29:29 -0600 (CST)

Categories: E-mail Categories: Application layer protocols | Computer-mediated communication | Communication software | Linux

Personal tools
Namespaces
">
Variants
Views
">
Actions
Search">
No Line on the Horizon is the twelfth studio album by the rock band U2. Released on 27 February 2009, it was the group's first album since How to Dismantle an Atomic Bomb , marking the longest gap between studio albums of U2's career. Work on the record began in 2006 with producer Rick Rubin, but most of the material from those sessions was
Navigation
Interaction
Toolbox
Print/export
Languages

 

The above information uses material from Wikipedia and is licensed under the GNU Free Documentation License The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a.
Some facts may not have been fully verified for accuracy. [Disclaimers Wikipedia is an online open-content collaborative encyclopedia, that is, a voluntary association of individuals and groups working to develop a common resource of human knowledge. The structure of the project allows anyone with an Internet connection to alter its content. Please be advised that nothing found here has necessarily been reviewed by]
This page was last archived by our server on Thu Jul 29 16:07:46 2010. [ refresh local cache ]
Displaying this page or its contents does not use any Wikimedia Foundation's resources.
The owners of this site proudly support the Wikimedia Foundation.