GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: mimeview   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index

3.12.1 Mimeview Invocation

The following table summarizes options specific for mimeview:

-a[type-list]
--no-ask[=type-list]

By default mimeview asks for confirmation before running interpreter to view a message. If this option is used without argument, it disables the default behavior for all message types. Otherwise, if argument type-list is given, it specifies a comma-separated list of MIME types for which no questions should be asked. Elements of this list may include shell-style globbing patterns, e.g. setting

--no-ask='text/*,image/jpeg'

will disable prompting before displaying any textual files, no matter what their subtype is, and before displaying files with type ‘image/jpeg’.

Notice, that when the long form is used, its argument must be separated from the option by a single equal sign, as shown in the example above. When the short form (-a) is used, its argument must follow the option immediately, without any intervening whitespace, e.g. -a'text/*').

-d[flags]
--debug[=flags]

Enables debugging output. Flags is a sequence of characters specifying the desired debugging level. Following characters are meaningful in flags:

g

Enables debugging of mime.types parser

l

Enables debugging of mime.types lexical analyzer (warning: produces very copious output)

0

Prints basic information about actions to be executed and reports about exit status of executed commands.

1

Additionally displays each file name along with its MIME type

2

Additionally traces the process of looking up the matching entry in mailcap files.

3

Additionally, enables debugging of mime.types parser (‘g’).

4

Additionally, enables debugging of mime.types lexer (‘l’).

digits from 5 to 9

The same as 4, currently.

If flags are not given, the default ‘2’ is assumed.

--metamail[=file]

Run metamail to display files, instead of using the internal mechanisms. If file is specified, it is taken as metamail command line.

-h
--no-interactive
--print

This options tells mimeview that it should run in non-interactive mode. In this mode prompting is disabled, and the normal mailcap command field is not executed. Instead mimeview will execute the command specified in the print field. If there is nothing in the print field, the mailcap entry is ignored and the search continues for a matching mailcap entry that does have a print field.

Notice, that unlike in metamail -h, this option does not force mimeview to send the output to the printer daemon.

When used with --metamail option, this option passes -h flag to the invocation of metamail.

By default mimeview behaves as if given --no-interactive option whenever its standard input is not a tty device.

-i
--identify

Identifies and prints the MIME type for each input file.

-n
--dry-run

Do not do anything, just print what would be done. Implies --debug=1, unless the debugging level is set up explicitly.

-f file
--mimetypes file

Use file as mime.types file. If file is a directory, use file/mime.types

-t
--lint

Check syntax of the mime.types file and exit. Command line arguments are ignored.

GNU Mailutils Manual (split by node):   Section:   Chapter:FastBack: Programs   Up: mimeview   FastForward: Libraries   Contents: Table of ContentsIndex: Function Index