Penguin

UPDATE-MIME

UPDATE-MIME

NAME SYNOPSIS DESCRIPTION OVERRIDING ORDER CREATING ENTRIES DEPENDENCIES SEE ALSO AUTHOR COPYRIGHT


NAME

update-mime - create or update MIME information

SYNOPSIS

update-mime [no parameters?

DESCRIPTION

update-mime updates the /etc/mailcap file to reflect mime information changed by a Debian package during installation or removal.

OVERRIDING ORDER

The order of entries in the /etc/mailcap file can be altered by editing the /etc/mailcap.order file. Please see the mailcap.order(5) man page for more information.

CREATING ENTRIES

To create entries in the mailcap file, packages need to create a file in the /usr/lib/mime/packages directory. In this file goes the verbatim desired mailcap entries. In addition to the standard mailcap options (described below) is a new priority option. Specifying this will provide for simple ranking of programs within a given mime type. An animation viewer, for example, may be able to display a static picture, but probably wouldn't be the best choice and so would give an option like priority option is omitted, a value of 5 is used.

The following are standard options that can be specified in the mailcap entry. Options are separated by semicolons (;) but must all be on the same line. Each line should look like:

mime/type; viewer; option; another=val; etc; priority=5

Mime types of the form

Commands

view=

Specifies the program to run to view a file of the given content-type. Actually, the This option connot be omitted.__ When writing an entry that has no viewer, use a value of false in this space.

compose=

The

composetyped=

The

edit=

The

print=

The

Modifiers

These options are modifiers to all the commands specified on the command line.

test=

The

Note: When testing for X by looking at the DISPLAY environment variable, please use one of:

test=test -z

Many programs recognize these strings and optimize for them.

needsterminal

The

copiousoutput

The

Content-Type Info

These options provide additional information about the given content-type.

description=

The

textualnewlines

The

x11-bitmap=

The

nametemplate=

The

DEPENDENCIES

Packages that wish to provide MIME access to themselves should not depend on, recommend, or suggest mime-support. Instead, they should just put something like the following in the postinst and postrm scripts.

if [ -x /usr/sbin/update-mime?; then update-mime fi

SEE ALSO

mailcap.order(5), RFC-2046, RFC-1524

AUTHOR

update-mime was written by Brian White __

COPYRIGHT

update-mime is in the public domain (the only true __


This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.