Package: mailcap
Version: 3.70+nmu1
Severity: minor
Tags: patch

Dear Maintainer,

here are some notes and editorial fixes for the manual.

The patch is in the attachment.

-.-

The difference between the formatted outputs can be seen with:

  nroff -man <file1> > <out1>
  nroff -man <file2> > <out2>
  diff -u <out1> <out2>

and for groff, using

"printf '%s\n%s\n' '.kern 0' '.ss 12 0' | groff -man -Z - "

instead of "nroff -man"

  Add the option "-t", if the file contains a table.

  Read the output of "diff -u" with "less -R" or similar.

-.-.

  If "man" (man-db) is used to check the manual for warnings,
the following must be set:

  The option "-warnings=w"

  The environmental variable:

export MAN_KEEP_STDERR=yes (or any non-empty value)

  or

  (produce only warnings):

export MANROFFOPT="-ww -z"

export MAN_KEEP_STDERR=yes (or any non-empty value)

-.-.

Output from "mandoc -T lint mailcap.5":

mandoc: mailcap.5:8:20: STYLE: whitespace at end of input line
mandoc: mailcap.5:12:308: STYLE: input text line longer than 80 bytes: The 
syntax of a mail...
mandoc: mailcap.5:14:266: STYLE: input text line longer than 80 bytes: Each 
individual mail...
mandoc: mailcap.5:18:111: STYLE: input text line longer than 80 bytes: The 
optional flags c...
mandoc: mailcap.5:22:169: STYLE: input text line longer than 80 bytes: can be 
used to indic...
mandoc: mailcap.5:24:483: STYLE: input text line longer than 80 bytes: The 
"type" field (te...
mandoc: mailcap.5:26:1112: STYLE: input text line longer than 80 bytes: The 
"command" field ...
mandoc: mailcap.5:28:307: STYLE: input text line longer than 80 bytes: If no 
"%s" appears i...
mandoc: mailcap.5:30:626: STYLE: input text line longer than 80 bytes: Two 
special codes ca...
mandoc: mailcap.5:30:626: STYLE: whitespace at end of input line
mandoc: mailcap.5:32:190: STYLE: input text line longer than 80 bytes: The 
"notes=xxx" fiel...
mandoc: mailcap.5:34:551: STYLE: input text line longer than 80 bytes: The 
"test=xxx" field...
mandoc: mailcap.5:36:190: STYLE: input text line longer than 80 bytes: The 
"print=xxx" fiel...
mandoc: mailcap.5:38:562: STYLE: input text line longer than 80 bytes: The 
"textualnewlines...
mandoc: mailcap.5:40:940: STYLE: input text line longer than 80 bytes: The 
"compose" field ...
mandoc: mailcap.5:42:862: STYLE: input text line longer than 80 bytes: The 
"composetyped" f...
mandoc: mailcap.5:46:621: STYLE: input text line longer than 80 bytes: If this 
flag is give...
mandoc: mailcap.5:49:443: STYLE: input text line longer than 80 bytes: This 
flag should be ...
mandoc: mailcap.5:51:762: STYLE: input text line longer than 80 bytes: The 
metamail program...
mandoc: mailcap.5:53:108: STYLE: input text line longer than 80 bytes: 
$HOME/.mailcap:/etc/...
mandoc: mailcap.5:64:62: STYLE: whitespace at end of input line
mandoc: mailcap.5:65:60: STYLE: whitespace at end of input line
mandoc: mailcap.5:66:59: STYLE: whitespace at end of input line
mandoc: mailcap.5:67:59: STYLE: whitespace at end of input line
mandoc: mailcap.5:68:52: STYLE: whitespace at end of input line
mandoc: mailcap.5:69:56: STYLE: whitespace at end of input line
mandoc: mailcap.5:70:55: STYLE: whitespace at end of input line
mandoc: mailcap.5:71:59: STYLE: whitespace at end of input line
mandoc: mailcap.5:72:59: STYLE: whitespace at end of input line

-.-.

chk_man: Next line: execute doclifter -w -v mailcap.5
mailcap.5 uses man macros...
"mailcap.5": warning - portability warning: nonportable requests 'end' seen.

-.-.

Input file is mailcap.5,

Remove space characters at the end of lines.

Use "git apply ... --whitespace=fix" to fix extra space issues, or use
global configuration "core.whitespace".

8:file is read by the
30:Two special codes can appear in the viewing command for objects of type 
multipart (any subtype).  These are "%n" and "%F".  %n will be replaced by the 
number of parts within the multipart object.  %F will be replaced by a series 
of arguments, two for each part, giving first the content-type and then the 
name of the temporary file where the decoded part has been stored.  In 
addition, for each file created by %F, a second file is created, with the same 
name followed by "H", which contains the header information for that body part. 
 This will not be needed by most multipart handlers, but it is there if you 
ever need it.
64:Permission to use, copy, modify, and distribute this material
65:for any purpose and without fee is hereby granted, provided
66:that the above copyright notice and this permission notice
67:appear in all copies, and that the name of Bellcore not be
68:used in advertising or publicity pertaining to this
69:material without the specific, prior written permission
70:of an authorized representative of Bellcore.  BELLCORE
71:MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
72:OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS",

-.-.

Change two HYPHEN-MINUSES (code 0x055, 2D) to an em-dash (\(em),
if one is intended.  An en-dash is usually surrounded by a space,
while an em-dash is used without spaces.
"man" (1 byte characters) transforms an en-dash (\(en ) to one
HYPHEN-MINUS,
and an em-dash to two HYPHEN-MINUSES without considering the space
around it.
If "--" are two single "-" (end of options) then use "\-\-".

mailcap.5:40:The "compose" field may be used to specify a program that can be 
used to compose a new body or body part in the given format.  Its intended use 
is to support mail composing agents that support the composition of multiple 
types of mail using external composing agents. As with the view-command, the 
compose command will be executed after replacing certain escape sequences 
starting with "%".  In particular, %s should be replaced by the name of a file 
to which the composed data is to be written by the specified composing program, 
thus allowing the calling program (e.g. metamail) to tell the called program 
where to store the composed data.  If %s does not appear, then the composed 
data will be assumed to be written by the composing programs to standard 
output.   The result of the composing program may be data that is NOT yet 
suitable for mail transport -- that is, a Content-Transfer-Encoding may still 
need to be applied to the data.
mailcap.5:51:The metamail program has built-in support for a few key 
content-types.  In particular, it supports the text type, the multipart and 
multipart/alternative type, and the message/rfc822 types.  This support is 
incomplete for many subtypes -- for example, it only supports US-ASCII text in 
general.  This kind of built-in support can be OVERRIDDEN by an entry in any 
mailcap file on the user's search path.  Metamail also has rudimentary built-in 
support for types that are totally unrecognized -- i.e. for which no mailcap 
entry or built-in handler exists.  For such unrecognized types, metamail will 
write a file with a "clean" copy of the data -- i.e. a copy in which all mail 
headers have been removed, and in which any 7-bit transport encoding has been 
decoded.
mailcap.5:53:$HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap
 -- default path for mailcap files.

-.-.

Mark a full stop (.) and the exclamation mark (!) with "\&",
if it does not mean an end of a sentence.
This is a preventive action,
the paragraph could be reshaped, e.g., after changes.

When typing, one does not always notice when the line wraps after the
period.
There are too many examples of input lines in manual pages,
that end with an abbreviation point.

This marking is robust, and independent of the position on the line.

It corresponds to "\ " in TeX, and to "@:" in Texinfo.

24:The "type" field (text/plain, in the above example) is simply any legal 
content type name, as defined by informational RFC 1524.  In practice, this is 
almost any string.  It is the string that will be matched against the 
"Content\-type" header (or the value passed in with \-c) to decide if this is 
the mailcap entry that matches the current message.  Additionally, the type 
field may specify a subtype (e.g. "text/ISO\-8859\-1") or a wildcard to match 
all subtypes (e.g. "image/*").
40:The "compose" field may be used to specify a program that can be used to 
compose a new body or body part in the given format.  Its intended use is to 
support mail composing agents that support the composition of multiple types of 
mail using external composing agents. As with the view-command, the compose 
command will be executed after replacing certain escape sequences starting with 
"%".  In particular, %s should be replaced by the name of a file to which the 
composed data is to be written by the specified composing program, thus 
allowing the calling program (e.g. metamail) to tell the called program where 
to store the composed data.  If %s does not appear, then the composed data will 
be assumed to be written by the composing programs to standard output.   The 
result of the composing program may be data that is NOT yet suitable for mail 
transport -- that is, a Content-Transfer-Encoding may still need to be applied 
to the data.
46:If this flag is given, the named interpreter needs to interact with the user 
on a terminal.  In some environments (e.g. a window-oriented mail reader under 
X11) this will require the creation of a new terminal emulation window, while 
in most environments it will not.  If the mailcap entry specifies 
"needsterminal" and metamail is not running on a terminal (as determined by 
isatty(3), the \-x option, and the MM_NOTTTY environment variable) then 
metamail will try to run the command in a new terminal emulation window.  
Currently, metamail knows how to create new windows under the X11, SunTools, 
and WM window systems.
51:The metamail program has built-in support for a few key content-types.  In 
particular, it supports the text type, the multipart and multipart/alternative 
type, and the message/rfc822 types.  This support is incomplete for many 
subtypes -- for example, it only supports US-ASCII text in general.  This kind 
of built-in support can be OVERRIDDEN by an entry in any mailcap file on the 
user's search path.  Metamail also has rudimentary built-in support for types 
that are totally unrecognized -- i.e. for which no mailcap entry or built-in 
handler exists.  For such unrecognized types, metamail will write a file with a 
"clean" copy of the data -- i.e. a copy in which all mail headers have been 
removed, and in which any 7-bit transport encoding has been decoded.
62:Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)

-.-.

Use "\e" to print the escape character instead of "\\" (which gets
interpreted in copy mode).

12:The syntax of a mailcap file is quite simple, at least compared to termcap 
files.  Any line that starts with "#" is a comment.  Blank lines are ignored.  
Otherwise, each line defines a single mailcap entry for a single content type.  
Long lines may be continued by ending them with a backslash character, \\.
26:The "command" field is any UNIX command ("cat %s" in the above example), and 
is used to specify the interpreter for the given type of message.  It will be 
passed to the shell via the system(3) facility.  Semicolons and backslashes 
within the command must be quoted with backslashes.  If the command contains 
"%s", those two characters will be replaced by the name of a file that contains 
the body of the message. If it contains "%t", those two characters will be 
replaced by the content-type field, including the subtype, if any.  (That is, 
if the content-type was "image/pbm; opt1=something-else", then "%t" would be 
replaced by "image/pbm".)   If the command field contains  "%{" followed by a 
parameter name and a closing "}", then all those characters will be replaced by 
the value of the named parameter, if any, from the Content-type header.   Thus, 
in the previous example, "%{opt1}" will be replaced by "something-else".  
Finally, if the command contains "\\%", those two characters will be replaced 
by a single % character.  (In fact, the backslash can be used to quote any 
character, including itself.)

-.-.

Use the word (in)valid instead of (il)legal,
if not related to legal matters.
See "www.gnu.org/prep/standards".
Think about translations into other languages!

mailcap.5:24:The "type" field (text/plain, in the above example) is simply any 
legal content type name, as defined by informational RFC 1524.  In practice, 
this is almost any string.  It is the string that will be matched against the 
"Content\-type" header (or the value passed in with \-c) to decide if this is 
the mailcap entry that matches the current message.  Additionally, the type 
field may specify a subtype (e.g. "text/ISO\-8859\-1") or a wildcard to match 
all subtypes (e.g. "image/*").

-.-.

Strings longer than 3/4 of a standard line length (80)

53 $HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap -- 
default path for mailcap files.

-.-.

Add a comma (or \&) after "e.g." and "i.e.", or use English words
(man-pages(7).
Abbreviation points should be protected against being interpreted as
an end of sentence, if they are not, and that independent of the
current place on the line.

24:The "type" field (text/plain, in the above example) is simply any legal 
content type name, as defined by informational RFC 1524.  In practice, this is 
almost any string.  It is the string that will be matched against the 
"Content\-type" header (or the value passed in with \-c) to decide if this is 
the mailcap entry that matches the current message.  Additionally, the type 
field may specify a subtype (e.g. "text/ISO\-8859\-1") or a wildcard to match 
all subtypes (e.g. "image/*").
40:The "compose" field may be used to specify a program that can be used to 
compose a new body or body part in the given format.  Its intended use is to 
support mail composing agents that support the composition of multiple types of 
mail using external composing agents. As with the view-command, the compose 
command will be executed after replacing certain escape sequences starting with 
"%".  In particular, %s should be replaced by the name of a file to which the 
composed data is to be written by the specified composing program, thus 
allowing the calling program (e.g. metamail) to tell the called program where 
to store the composed data.  If %s does not appear, then the composed data will 
be assumed to be written by the composing programs to standard output.   The 
result of the composing program may be data that is NOT yet suitable for mail 
transport -- that is, a Content-Transfer-Encoding may still need to be applied 
to the data.
46:If this flag is given, the named interpreter needs to interact with the user 
on a terminal.  In some environments (e.g. a window-oriented mail reader under 
X11) this will require the creation of a new terminal emulation window, while 
in most environments it will not.  If the mailcap entry specifies 
"needsterminal" and metamail is not running on a terminal (as determined by 
isatty(3), the \-x option, and the MM_NOTTTY environment variable) then 
metamail will try to run the command in a new terminal emulation window.  
Currently, metamail knows how to create new windows under the X11, SunTools, 
and WM window systems.
51:The metamail program has built-in support for a few key content-types.  In 
particular, it supports the text type, the multipart and multipart/alternative 
type, and the message/rfc822 types.  This support is incomplete for many 
subtypes -- for example, it only supports US-ASCII text in general.  This kind 
of built-in support can be OVERRIDDEN by an entry in any mailcap file on the 
user's search path.  Metamail also has rudimentary built-in support for types 
that are totally unrecognized -- i.e. for which no mailcap entry or built-in 
handler exists.  For such unrecognized types, metamail will write a file with a 
"clean" copy of the data -- i.e. a copy in which all mail headers have been 
removed, and in which any 7-bit transport encoding has been decoded.

-.-.

Wrong distance between sentences.

  Separate the sentences and subordinate clauses; each begins on a new
line.  See man-pages(7) ("Conventions for source file layout") and
"info groff" ("Input Conventions").

  The best procedure is to always start a new sentence on a new line,
at least, if you are typing on a computer.

Remember coding: Only one command ("sentence") on each (logical) line.

E-mail: Easier to quote exactly the relevant lines.

Generally: Easier to edit the sentence.

Patches: Less unaffected text.

Search for two adjacent words is easier, when they belong to the same line,
and the same phrase.

  The amount of space between sentences in the output can then be
controlled with the ".ss" request.

N.B

  The number of lines affected is too large to be in the patch.

24:The "type" field (text/plain, in the above example) is simply any legal 
content type name, as defined by informational RFC 1524.  In practice, this is 
almost any string.  It is the string that will be matched against the 
"Content\-type" header (or the value passed in with \-c) to decide if this is 
the mailcap entry that matches the current message.  Additionally, the type 
field may specify a subtype (e.g. "text/ISO\-8859\-1") or a wildcard to match 
all subtypes (e.g. "image/*").
26:The "command" field is any UNIX command ("cat %s" in the above example), and 
is used to specify the interpreter for the given type of message.  It will be 
passed to the shell via the system(3) facility.  Semicolons and backslashes 
within the command must be quoted with backslashes.  If the command contains 
"%s", those two characters will be replaced by the name of a file that contains 
the body of the message. If it contains "%t", those two characters will be 
replaced by the content-type field, including the subtype, if any.  (That is, 
if the content-type was "image/pbm; opt1=something-else", then "%t" would be 
replaced by "image/pbm".)   If the command field contains  "%{" followed by a 
parameter name and a closing "}", then all those characters will be replaced by 
the value of the named parameter, if any, from the Content-type header.   Thus, 
in the previous example, "%{opt1}" will be replaced by "something-else".  
Finally, if the command contains "\\%", those two characters will be replaced 
by a single % character.  (In fact, the backslash can be used to quote any 
character, including itself.)
40:The "compose" field may be used to specify a program that can be used to 
compose a new body or body part in the given format.  Its intended use is to 
support mail composing agents that support the composition of multiple types of 
mail using external composing agents. As with the view-command, the compose 
command will be executed after replacing certain escape sequences starting with 
"%".  In particular, %s should be replaced by the name of a file to which the 
composed data is to be written by the specified composing program, thus 
allowing the calling program (e.g. metamail) to tell the called program where 
to store the composed data.  If %s does not appear, then the composed data will 
be assumed to be written by the composing programs to standard output.   The 
result of the composing program may be data that is NOT yet suitable for mail 
transport -- that is, a Content-Transfer-Encoding may still need to be applied 
to the data.
42:The "composetyped" field is similar to the "compose" field, but is to be 
used when the composing program needs to specify the Content-type header field 
to be applied to the composed data.  The "compose" field is simpler, and is 
preferred for use with existing (non-mail-oriented) programs for composing data 
in a given format.  The "composetyped" field is necessary when the Content-type 
information must include auxiliary parameters, and the composition program must 
then know enough about mail formats to produce output that includes the mail 
type information, and to apply any necessary Content-Transfer-Encoding.   
Conceptually, "compose" specifies a program that simply outputs the specified 
type of data in its raw form, while "composetyped" specifies a program that 
outputs the data as a MIME object, with all necessary Content-* headers already 
in place.
46:If this flag is given, the named interpreter needs to interact with the user 
on a terminal.  In some environments (e.g. a window-oriented mail reader under 
X11) this will require the creation of a new terminal emulation window, while 
in most environments it will not.  If the mailcap entry specifies 
"needsterminal" and metamail is not running on a terminal (as determined by 
isatty(3), the \-x option, and the MM_NOTTTY environment variable) then 
metamail will try to run the command in a new terminal emulation window.  
Currently, metamail knows how to create new windows under the X11, SunTools, 
and WM window systems.
51:The metamail program has built-in support for a few key content-types.  In 
particular, it supports the text type, the multipart and multipart/alternative 
type, and the message/rfc822 types.  This support is incomplete for many 
subtypes -- for example, it only supports US-ASCII text in general.  This kind 
of built-in support can be OVERRIDDEN by an entry in any mailcap file on the 
user's search path.  Metamail also has rudimentary built-in support for types 
that are totally unrecognized -- i.e. for which no mailcap entry or built-in 
handler exists.  For such unrecognized types, metamail will write a file with a 
"clean" copy of the data -- i.e. a copy in which all mail headers have been 
removed, and in which any 7-bit transport encoding has been decoded.
62:Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
75:Nathaniel S. Borenstein

-.-.

Split lines longer than 80 characters into two or more lines.
Appropriate break points are the end of a sentence and a subordinate
clause; after punctuation marks.

mailcap.5: line 12 length 308
The syntax of a mailcap file is quite simple, at least compared to termcap 
files.  Any line that starts with "#" is a comment.  Blank lines are ignored.  
Otherwise, each line defines a single mailcap entry for a single content type.  
Long lines may be continued by ending them with a backslash character, \\.

mailcap.5: line 14 length 266
Each individual mailcap entry consists of a content-type specification, a 
command to execute, and (possibly) a set of optional "flag" values.  For 
example, a very simple mailcap entry (which is actually a built-in default 
behavior for metamail) would look like this:

mailcap.5: line 18 length 111
The optional flags can be used to specify additional information about the 
mail-handling command.  For example:

mailcap.5: line 22 length 169
can be used to indicate that the output of the 'cat' command may be voluminous, 
requiring either a scrolling window, a pager, or some other appropriate coping 
mechanism.

mailcap.5: line 24 length 483
The "type" field (text/plain, in the above example) is simply any legal content 
type name, as defined by informational RFC 1524.  In practice, this is almost 
any string.  It is the string that will be matched against the "Content\-type" 
header (or the value passed in with \-c) to decide if this is the mailcap entry 
that matches the current message.  Additionally, the type field may specify a 
subtype (e.g. "text/ISO\-8859\-1") or a wildcard to match all subtypes (e.g. 
"image/*").

mailcap.5: line 26 length 1112
The "command" field is any UNIX command ("cat %s" in the above example), and is 
used to specify the interpreter for the given type of message.  It will be 
passed to the shell via the system(3) facility.  Semicolons and backslashes 
within the command must be quoted with backslashes.  If the command contains 
"%s", those two characters will be replaced by the name of a file that contains 
the body of the message. If it contains "%t", those two characters will be 
replaced by the content-type field, including the subtype, if any.  (That is, 
if the content-type was "image/pbm; opt1=something-else", then "%t" would be 
replaced by "image/pbm".)   If the command field contains  "%{" followed by a 
parameter name and a closing "}", then all those characters will be replaced by 
the value of the named parameter, if any, from the Content-type header.   Thus, 
in the previous example, "%{opt1}" will be replaced by "something-else".  
Finally, if the command contains "\\%", those two characters will be replaced 
by a single % character.  (In fact, the backslash can be used to quote any 
character, including itself.)

mailcap.5: line 28 length 307
If no "%s" appears in the command field, then instead of placing the message 
body in a temporary file, metamail will pass the body to the command on the 
standard input.  This is helpful in saving /tmp file space, but can be 
problematic for window-oriented applications under some window systems such as 
MGR.

mailcap.5: line 30 length 626
Two special codes can appear in the viewing command for objects of type 
multipart (any subtype).  These are "%n" and "%F".  %n will be replaced by the 
number of parts within the multipart object.  %F will be replaced by a series 
of arguments, two for each part, giving first the content-type and then the 
name of the temporary file where the decoded part has been stored.  In 
addition, for each file created by %F, a second file is created, with the same 
name followed by "H", which contains the header information for that body part. 
 This will not be needed by most multipart handlers, but it is there if you 
ever need it.

mailcap.5: line 32 length 190
The "notes=xxx" field is an uninterpreted string that is used to specify the 
name of the person who installed this entry in the mailcap file.  (The "xxx" 
may be replaced by any text string.)

mailcap.5: line 34 length 551
The "test=xxx" field is a command that is executed to determine whether or not 
the mailcap line actually applies.  That is, if the content-type field matches 
the content-type on the message, but a "test=" field is present, then the test 
must succeed before the mailcap line is considered to "match" the message being 
viewed.  The command may be any UNIX command, using the same syntax and the 
same %-escapes as for the viewing command, as described above.  A command is 
considered to succeed if it exits with a zero exit status, and to fail 
otherwise.

mailcap.5: line 36 length 190
The "print=xxx" field is a command that is executed to print the data instead 
of display it interactively.  This behavior is usually a consequence of 
invoking metamail with the "\-h" switch.

mailcap.5: line 38 length 562
The "textualnewlines" field can be used in the rather obscure case where 
metamail's default rules for treating newlines in base64-encoded data are 
unsatisfactory.  By default, metamail will translate CRLF to the local newline 
character in decoded base64 output if the content-type is "text" (any subtype), 
but will not do so otherwise.  A mailcap entry with a field of 
"textualnewlines=1" will force such translation for the specified content-type, 
while "textualnewlines=0" will guarantee that the translation does not take 
place even for textual content-types.

mailcap.5: line 40 length 940
The "compose" field may be used to specify a program that can be used to 
compose a new body or body part in the given format.  Its intended use is to 
support mail composing agents that support the composition of multiple types of 
mail using external composing agents. As with the view-command, the compose 
command will be executed after replacing certain escape sequences starting with 
"%".  In particular, %s should be replaced by the name of a file to which the 
composed data is to be written by the specified composing program, thus 
allowing the calling program (e.g. metamail) to tell the called program where 
to store the composed data.  If %s does not appear, then the composed data will 
be assumed to be written by the composing programs to standard output.   The 
result of the composing program may be data that is NOT yet suitable for mail 
transport -- that is, a Content-Transfer-Encoding may still need to be applied 
to the data.

mailcap.5: line 42 length 862
The "composetyped" field is similar to the "compose" field, but is to be used 
when the composing program needs to specify the Content-type header field to be 
applied to the composed data.  The "compose" field is simpler, and is preferred 
for use with existing (non-mail-oriented) programs for composing data in a 
given format.  The "composetyped" field is necessary when the Content-type 
information must include auxiliary parameters, and the composition program must 
then know enough about mail formats to produce output that includes the mail 
type information, and to apply any necessary Content-Transfer-Encoding.   
Conceptually, "compose" specifies a program that simply outputs the specified 
type of data in its raw form, while "composetyped" specifies a program that 
outputs the data as a MIME object, with all necessary Content-* headers already 
in place.

mailcap.5: line 46 length 621
If this flag is given, the named interpreter needs to interact with the user on 
a terminal.  In some environments (e.g. a window-oriented mail reader under 
X11) this will require the creation of a new terminal emulation window, while 
in most environments it will not.  If the mailcap entry specifies 
"needsterminal" and metamail is not running on a terminal (as determined by 
isatty(3), the \-x option, and the MM_NOTTTY environment variable) then 
metamail will try to run the command in a new terminal emulation window.  
Currently, metamail knows how to create new windows under the X11, SunTools, 
and WM window systems.

mailcap.5: line 49 length 443
This flag should be given whenever the interpreter is capable of producing more 
than a few lines of output on stdout, and does no interaction with the user.  
If the mailcap entry specifies copiousoutput, and pagination has been requested 
via the "\-p" command, then the output of the command being executed will be 
piped through a pagination program ("more" by default, but this can be 
overridden with the METAMAIL_PAGER environment variable).

mailcap.5: line 51 length 762
The metamail program has built-in support for a few key content-types.  In 
particular, it supports the text type, the multipart and multipart/alternative 
type, and the message/rfc822 types.  This support is incomplete for many 
subtypes -- for example, it only supports US-ASCII text in general.  This kind 
of built-in support can be OVERRIDDEN by an entry in any mailcap file on the 
user's search path.  Metamail also has rudimentary built-in support for types 
that are totally unrecognized -- i.e. for which no mailcap entry or built-in 
handler exists.  For such unrecognized types, metamail will write a file with a 
"clean" copy of the data -- i.e. a copy in which all mail headers have been 
removed, and in which any 7-bit transport encoding has been decoded.

mailcap.5: line 53 length 108
$HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap -- 
default path for mailcap files.

-.-.

Use \(en for a dash (en-dash) between space characters, not a minus
(\-) or a hyphen (-), except in the NAME section.

mailcap.5:4:mailcap - metamail capabilities file

-.-.

Do not use more than two space characters between sentences or (better)
only a new line character.

26:The "command" field is any UNIX command ("cat %s" in the above example), and 
is used to specify the interpreter for the given type of message.  It will be 
passed to the shell via the system(3) facility.  Semicolons and backslashes 
within the command must be quoted with backslashes.  If the command contains 
"%s", those two characters will be replaced by the name of a file that contains 
the body of the message. If it contains "%t", those two characters will be 
replaced by the content-type field, including the subtype, if any.  (That is, 
if the content-type was "image/pbm; opt1=something-else", then "%t" would be 
replaced by "image/pbm".)   If the command field contains  "%{" followed by a 
parameter name and a closing "}", then all those characters will be replaced by 
the value of the named parameter, if any, from the Content-type header.   Thus, 
in the previous example, "%{opt1}" will be replaced by "something-else".  
Finally, if the command contains "\\%", those two characters will be replaced 
by a single % character.  (In fact, the backslash can be used to quote any 
character, including itself.)
40:The "compose" field may be used to specify a program that can be used to 
compose a new body or body part in the given format.  Its intended use is to 
support mail composing agents that support the composition of multiple types of 
mail using external composing agents. As with the view-command, the compose 
command will be executed after replacing certain escape sequences starting with 
"%".  In particular, %s should be replaced by the name of a file to which the 
composed data is to be written by the specified composing program, thus 
allowing the calling program (e.g. metamail) to tell the called program where 
to store the composed data.  If %s does not appear, then the composed data will 
be assumed to be written by the composing programs to standard output.   The 
result of the composing program may be data that is NOT yet suitable for mail 
transport -- that is, a Content-Transfer-Encoding may still need to be applied 
to the data.
42:The "composetyped" field is similar to the "compose" field, but is to be 
used when the composing program needs to specify the Content-type header field 
to be applied to the composed data.  The "compose" field is simpler, and is 
preferred for use with existing (non-mail-oriented) programs for composing data 
in a given format.  The "composetyped" field is necessary when the Content-type 
information must include auxiliary parameters, and the composition program must 
then know enough about mail formats to produce output that includes the mail 
type information, and to apply any necessary Content-Transfer-Encoding.   
Conceptually, "compose" specifies a program that simply outputs the specified 
type of data in its raw form, while "composetyped" specifies a program that 
outputs the data as a MIME object, with all necessary Content-* headers already 
in place.

-.-.

The name of a man page is typeset in bold and the section in roman
(see man-pages(7)).

26:The "command" field is any UNIX command ("cat %s" in the above example), and 
is used to specify the interpreter for the given type of message.  It will be 
passed to the shell via the system(3) facility.  Semicolons and backslashes 
within the command must be quoted with backslashes.  If the command contains 
"%s", those two characters will be replaced by the name of a file that contains 
the body of the message. If it contains "%t", those two characters will be 
replaced by the content-type field, including the subtype, if any.  (That is, 
if the content-type was "image/pbm; opt1=something-else", then "%t" would be 
replaced by "image/pbm".)   If the command field contains  "%{" followed by a 
parameter name and a closing "}", then all those characters will be replaced by 
the value of the named parameter, if any, from the Content-type header.   Thus, 
in the previous example, "%{opt1}" will be replaced by "something-else".  
Finally, if the command contains "\\%", those two characters will be replaced 
by a single % character.  (In fact, the backslash can be used to quote any 
character, including itself.)
46:If this flag is given, the named interpreter needs to interact with the user 
on a terminal.  In some environments (e.g. a window-oriented mail reader under 
X11) this will require the creation of a new terminal emulation window, while 
in most environments it will not.  If the mailcap entry specifies 
"needsterminal" and metamail is not running on a terminal (as determined by 
isatty(3), the \-x option, and the MM_NOTTTY environment variable) then 
metamail will try to run the command in a new terminal emulation window.  
Currently, metamail knows how to create new windows under the X11, SunTools, 
and WM window systems.

-.-.

Start a sentence in parenthesis on a new line.

mailcap.5:13:Each individual mailcap entry consists of a content-type 
specification, a command to execute, and (possibly) a set of optional "flag" 
values.  For example, a very simple mailcap entry (which is actually a built-in 
default behavior for metamail) would look like this:
mailcap.5:23:The "type" field (text/plain, in the above example) is simply any 
legal content type name, as defined by informational RFC 1524.  In practice, 
this is almost any string.  It is the string that will be matched against the 
"Content\-type" header (or the value passed in with \-c) to decide if this is 
the mailcap entry that matches the current message.  Additionally, the type 
field may specify a subtype (e.g. "text/ISO\-8859\-1") or a wildcard to match 
all subtypes (e.g. "image/*").
mailcap.5:25:The "command" field is any UNIX command ("cat %s" in the above 
example), and is used to specify the interpreter for the given type of message. 
 It will be passed to the shell via the system(3) facility.  Semicolons and 
backslashes within the command must be quoted with backslashes.  If the command 
contains "%s", those two characters will be replaced by the name of a file that 
contains the body of the message. If it contains "%t", those two characters 
will be replaced by the content-type field, including the subtype, if any.  
(That is, if the content-type was "image/pbm; opt1=something-else", then "%t" 
would be replaced by "image/pbm".)   If the command field contains  "%{" 
followed by a parameter name and a closing "}", then all those characters will 
be replaced by the value of the named parameter, if any, from the Content-type 
header.   Thus, in the previous example, "%{opt1}" will be replaced by 
"something-else".  Finally, if the command contains "\\%", those two characters 
will be replaced by a single % character.  (In fact, the backslash can be used 
to quote any character, including itself.)
mailcap.5:31:The "notes=xxx" field is an uninterpreted string that is used to 
specify the name of the person who installed this entry in the mailcap file.  
(The "xxx" may be replaced by any text string.)
mailcap.5:39:The "compose" field may be used to specify a program that can be 
used to compose a new body or body part in the given format.  Its intended use 
is to support mail composing agents that support the composition of multiple 
types of mail using external composing agents. As with the view-command, the 
compose command will be executed after replacing certain escape sequences 
starting with "%".  In particular, %s should be replaced by the name of a file 
to which the composed data is to be written by the specified composing program, 
thus allowing the calling program (e.g. metamail) to tell the called program 
where to store the composed data.  If %s does not appear, then the composed 
data will be assumed to be written by the composing programs to standard 
output.   The result of the composing program may be data that is NOT yet 
suitable for mail transport -- that is, a Content-Transfer-Encoding may still 
need to be applied to the data.
mailcap.5:41:The "composetyped" field is similar to the "compose" field, but is 
to be used when the composing program needs to specify the Content-type header 
field to be applied to the composed data.  The "compose" field is simpler, and 
is preferred for use with existing (non-mail-oriented) programs for composing 
data in a given format.  The "composetyped" field is necessary when the 
Content-type information must include auxiliary parameters, and the composition 
program must then know enough about mail formats to produce output that 
includes the mail type information, and to apply any necessary 
Content-Transfer-Encoding.   Conceptually, "compose" specifies a program that 
simply outputs the specified type of data in its raw form, while "composetyped" 
specifies a program that outputs the data as a MIME object, with all necessary 
Content-* headers already in place.
mailcap.5:45:If this flag is given, the named interpreter needs to interact 
with the user on a terminal.  In some environments (e.g. a window-oriented mail 
reader under X11) this will require the creation of a new terminal emulation 
window, while in most environments it will not.  If the mailcap entry specifies 
"needsterminal" and metamail is not running on a terminal (as determined by 
isatty(3), the \-x option, and the MM_NOTTTY environment variable) then 
metamail will try to run the command in a new terminal emulation window.  
Currently, metamail knows how to create new windows under the X11, SunTools, 
and WM window systems.
mailcap.5:48:This flag should be given whenever the interpreter is capable of 
producing more than a few lines of output on stdout, and does no interaction 
with the user.  If the mailcap entry specifies copiousoutput, and pagination 
has been requested via the "\-p" command, then the output of the command being 
executed will be piped through a pagination program ("more" by default, but 
this can be overridden with the METAMAIL_PAGER environment variable).
mailcap.5:58:RFC 1524 (<http://tools.ietf.org/html/rfc1524>)

-.-.

[ "test-groff" is a developmental version of "groff" ]

Input file is ./mailcap.5

Output from "test-groff -b -mandoc -dAD=l -rF0 -rHY=0 -t -w w -z 
-rCHECKSTYLE=0":
troff: backtrace: file '<stdin>':8
troff:<stdin>:8: warning: trailing space in the line
troff: backtrace: file '<stdin>':30
troff:<stdin>:30: warning: trailing space in the line
troff: backtrace: file '<stdin>':64
troff:<stdin>:64: warning: trailing space in the line
troff: backtrace: file '<stdin>':65
troff:<stdin>:65: warning: trailing space in the line
troff: backtrace: file '<stdin>':66
troff:<stdin>:66: warning: trailing space in the line
troff: backtrace: file '<stdin>':67
troff:<stdin>:67: warning: trailing space in the line
troff: backtrace: file '<stdin>':68
troff:<stdin>:68: warning: trailing space in the line
troff: backtrace: file '<stdin>':69
troff:<stdin>:69: warning: trailing space in the line
troff: backtrace: file '<stdin>':70
troff:<stdin>:70: warning: trailing space in the line
troff: backtrace: file '<stdin>':71
troff:<stdin>:71: warning: trailing space in the line
troff: backtrace: file '<stdin>':72
troff:<stdin>:72: warning: trailing space in the line

-.-.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.4.13-1 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mailcap depends on:
ii  media-types  10.1.0
ii  perl         5.36.0-9

Versions of packages mailcap recommends:
ii  bzip2     1.0.8-5+b1
ii  file      1:5.45-2
ii  xz-utils  5.4.4-0.1

mailcap suggests no packages.

-- no debconf information
--- mailcap.5	2023-09-18 20:33:48.000000000 +0000
+++ mailcap.5.new	2023-09-18 21:25:56.000000000 +0000
@@ -1,56 +1,225 @@
 .\" Hey, Emacs!  This is an -*- nroff -*- source file.
 .TH MAILCAP 5 "Release 2" "Bellcore Prototype"
 .SH NAME
-mailcap - metamail capabilities file
+mailcap \- metamail capabilities file
 .SH DESCRIPTION
 The
 .I mailcap
-file is read by the 
+file is read by the
 .I metamail
 program to determine how to display non-text at the local site.
 
-The syntax of a mailcap file is quite simple, at least compared to termcap files.  Any line that starts with "#" is a comment.  Blank lines are ignored.  Otherwise, each line defines a single mailcap entry for a single content type.  Long lines may be continued by ending them with a backslash character, \\.
+The syntax of a mailcap file is quite simple,
+at least compared to termcap files.
+Any line that starts with "#" is a comment.
+Blank lines are ignored.
+Otherwise,
+each line defines a single mailcap entry for a single content type.
+Long lines may be continued by ending them with a backslash character, \e.
 
-Each individual mailcap entry consists of a content-type specification, a command to execute, and (possibly) a set of optional "flag" values.  For example, a very simple mailcap entry (which is actually a built-in default behavior for metamail) would look like this:
+Each individual mailcap entry consists of a content-type specification,
+a command to execute,
+and (possibly) a set of optional "flag" values.
+For example, a very simple mailcap entry
+(which is actually a built-in default behavior for metamail)
+would look like this:
 
 text/plain; cat %s
 
-The optional flags can be used to specify additional information about the mail-handling command.  For example:
+The optional flags can be used to specify additional information about the mail-handling
+command.
+For example:
 
 text/plain; cat %s; copiousoutput
 
-can be used to indicate that the output of the 'cat' command may be voluminous, requiring either a scrolling window, a pager, or some other appropriate coping mechanism.
+can be used to indicate that the output of the 'cat' command may be
+voluminous,
+requiring either a scrolling window,
+a pager, or some other appropriate coping mechanism.
 
-The "type" field (text/plain, in the above example) is simply any legal content type name, as defined by informational RFC 1524.  In practice, this is almost any string.  It is the string that will be matched against the "Content\-type" header (or the value passed in with \-c) to decide if this is the mailcap entry that matches the current message.  Additionally, the type field may specify a subtype (e.g. "text/ISO\-8859\-1") or a wildcard to match all subtypes (e.g. "image/*").
+The "type" field
+(text/plain, in the above example)
+is simply any valid content type name,
+as defined by informational RFC 1524.
+In practice, this is almost any string.
+It is the string that will be matched against the "Content\-type" header
+(or the value passed in with \-c)
+to decide if this is the mailcap entry that matches the current message.
+Additionally, the type field may specify a subtype
+(e.g., "text/ISO\-8859\-1")
+or a wildcard to match all subtypes (e.g., "image/*").
 
-The "command" field is any UNIX command ("cat %s" in the above example), and is used to specify the interpreter for the given type of message.  It will be passed to the shell via the system(3) facility.  Semicolons and backslashes within the command must be quoted with backslashes.  If the command contains "%s", those two characters will be replaced by the name of a file that contains the body of the message. If it contains "%t", those two characters will be replaced by the content-type field, including the subtype, if any.  (That is, if the content-type was "image/pbm; opt1=something-else", then "%t" would be replaced by "image/pbm".)   If the command field contains  "%{" followed by a parameter name and a closing "}", then all those characters will be replaced by the value of the named parameter, if any, from the Content-type header.   Thus, in the previous example, "%{opt1}" will be replaced by "something-else".  Finally, if the command contains "\\%", those two characters will be replaced by a single % character.  (In fact, the backslash can be used to quote any character, including itself.)
+The "command" field is any UNIX command ("cat %s" in the above example),
+and is used to specify the interpreter for the given type of message.
+It will be passed to the shell via the system(3) facility.
+Semicolons and backslashes within the command must be quoted with
+backslashes.
+If the command contains "%s",
+those two characters will be replaced by the name of a file that
+contains the body of the message.
+If it contains "%t",
+those two characters will be replaced by the content-type field,
+including the subtype, if any.
+(That is, if the content-type was "image/pbm; opt1=something-else",
+then "%t" would be replaced by "image/pbm".)
+If the command field contains "%{" followed by a parameter name and a closing
+"}",
+then all those characters will be replaced by the value of the named
+parameter,
+if any, from the Content-type header.
+Thus, in the previous example,
+"%{opt1}" will be replaced by "something-else".
+Finally, if the command contains "\\%",
+those two characters will be replaced by a single % character.
+(In fact, the backslash can be used to quote any character, including itself.)
 
-If no "%s" appears in the command field, then instead of placing the message body in a temporary file, metamail will pass the body to the command on the standard input.  This is helpful in saving /tmp file space, but can be problematic for window-oriented applications under some window systems such as MGR.
+If no "%s" appears in the command field,
+then instead of placing the message body in a temporary file,
+metamail will pass the body to the command on the standard input.
+This is helpful in saving /tmp file space,
+but can be problematic for window-oriented applications under some
+window systems such as MGR.
 
-Two special codes can appear in the viewing command for objects of type multipart (any subtype).  These are "%n" and "%F".  %n will be replaced by the number of parts within the multipart object.  %F will be replaced by a series of arguments, two for each part, giving first the content-type and then the name of the temporary file where the decoded part has been stored.  In addition, for each file created by %F, a second file is created, with the same name followed by "H", which contains the header information for that body part.  This will not be needed by most multipart handlers, but it is there if you ever need it.  
+Two special codes can appear in the viewing command for objects of type
+multipart (any subtype).
+These are "%n" and "%F".
+%n will be replaced by the number of parts within the multipart object.
+%F will be replaced by a series of arguments,
+two for each part,
+giving first the content-type and then the name of the temporary file
+where the decoded part has been stored.
+In addition, for each file created by %F,
+a second file is created, with the same name followed by "H",
+which contains the header information for that body part.
+This will not be needed by most multipart handlers,
+but it is there if you ever need it.
 
-The "notes=xxx" field is an uninterpreted string that is used to specify the name of the person who installed this entry in the mailcap file.  (The "xxx" may be replaced by any text string.)
+The "notes=xxx" field is an uninterpreted string that is used to
+specify the name of the person who installed this entry in the mailcap
+file.
+(The "xxx" may be replaced by any text string.)
 
-The "test=xxx" field is a command that is executed to determine whether or not the mailcap line actually applies.  That is, if the content-type field matches the content-type on the message, but a "test=" field is present, then the test must succeed before the mailcap line is considered to "match" the message being viewed.  The command may be any UNIX command, using the same syntax and the same %-escapes as for the viewing command, as described above.  A command is considered to succeed if it exits with a zero exit status, and to fail otherwise.
+The "test=xxx" field is a command that is executed to determine whether
+or not the mailcap line actually applies.
+That is, if the content-type field matches the content-type on the
+message,
+but a "test=" field is present,
+then the test must succeed before the mailcap line is considered to
+"match" the message being viewed.
+The command may be any UNIX command,
+using the same syntax and the same %-escapes as for the viewing command,
+as described above.
+A command is considered to succeed
+if it exits with a zero exit status, and to fail otherwise.
 
-The "print=xxx" field is a command that is executed to print the data instead of display it interactively.  This behavior is usually a consequence of invoking metamail with the "\-h" switch.
+The "print=xxx" field is a command that is executed to print the data
+instead of display it interactively.
+This behavior is usually a consequence of invoking metamail with the
+"\-h" switch.
 
-The "textualnewlines" field can be used in the rather obscure case where metamail's default rules for treating newlines in base64-encoded data are unsatisfactory.  By default, metamail will translate CRLF to the local newline character in decoded base64 output if the content-type is "text" (any subtype), but will not do so otherwise.  A mailcap entry with a field of "textualnewlines=1" will force such translation for the specified content-type, while "textualnewlines=0" will guarantee that the translation does not take place even for textual content-types.
+The "textualnewlines" field can be used in the rather obscure case
+where metamail's default rules for treating newlines in base64-encoded
+data are unsatisfactory.
+By default,
+metamail will translate CRLF to the local newline character in decoded
+base64 output
+if the content-type is "text" (any subtype),
+but will not do so otherwise.
+A mailcap entry with a field of "textualnewlines=1" will force such
+translation for the specified content-type,
+while "textualnewlines=0" will guarantee that the translation does not
+take place even for textual content-types.
 
-The "compose" field may be used to specify a program that can be used to compose a new body or body part in the given format.  Its intended use is to support mail composing agents that support the composition of multiple types of mail using external composing agents. As with the view-command, the compose command will be executed after replacing certain escape sequences starting with "%".  In particular, %s should be replaced by the name of a file to which the composed data is to be written by the specified composing program, thus allowing the calling program (e.g. metamail) to tell the called program where to store the composed data.  If %s does not appear, then the composed data will be assumed to be written by the composing programs to standard output.   The result of the composing program may be data that is NOT yet suitable for mail transport -- that is, a Content-Transfer-Encoding may still need to be applied to the data.
+The "compose" field may be used to specify a program that can be used
+to compose a new body or body part in the given format.
+Its intended use is to support mail composing agents
+that support the composition of multiple types of mail using external
+composing agents.
+As with the view-command,
+the compose command will be executed after replacing certain escape
+sequences starting with "%".
+In particular,
+%s should be replaced by the name of a file to which
+the composed data is to be written by the specified composing program,
+thus allowing the calling program
+(e.g., metamail)
+to tell the called program where to store the composed data.
+If %s does not appear,
+then the composed data will be assumed to be written by the composing
+programs to standard output.
+The result of the composing program may be data
+that is NOT yet suitable for mail transport \(en
+that is,
+a Content-Transfer-Encoding may still need to be applied to the data.
 
-The "composetyped" field is similar to the "compose" field, but is to be used when the composing program needs to specify the Content-type header field to be applied to the composed data.  The "compose" field is simpler, and is preferred for use with existing (non-mail-oriented) programs for composing data in a given format.  The "composetyped" field is necessary when the Content-type information must include auxiliary parameters, and the composition program must then know enough about mail formats to produce output that includes the mail type information, and to apply any necessary Content-Transfer-Encoding.   Conceptually, "compose" specifies a program that simply outputs the specified type of data in its raw form, while "composetyped" specifies a program that outputs the data as a MIME object, with all necessary Content-* headers already in place.
+The "composetyped" field is similar to the "compose" field,
+but is to be used when the composing program needs to specify the
+Content-type header field to be applied to the composed data.
+The "compose" field is simpler,
+and is preferred for use with existing
+(non-mail-oriented)
+programs for composing data in a given format.
+The "composetyped" field is necessary when the Content-type information
+must include auxiliary parameters,
+and the composition program must then know enough about mail formats
+to produce output that includes the mail type information,
+and to apply any necessary Content-Transfer-Encoding.
+Conceptually,
+"compose" specifies a program
+that simply outputs the specified type of data in its raw form,
+while "composetyped" specifies a program
+that outputs the data as a MIME object,
+with all necessary Content-* headers already in place.
 
 .TP 8
 .B needsterminal
-If this flag is given, the named interpreter needs to interact with the user on a terminal.  In some environments (e.g. a window-oriented mail reader under X11) this will require the creation of a new terminal emulation window, while in most environments it will not.  If the mailcap entry specifies "needsterminal" and metamail is not running on a terminal (as determined by isatty(3), the \-x option, and the MM_NOTTTY environment variable) then metamail will try to run the command in a new terminal emulation window.  Currently, metamail knows how to create new windows under the X11, SunTools, and WM window systems.
+If this flag is given,
+the named interpreter needs to interact with the user on a terminal.
+In some environments
+(e.g., a window-oriented mail reader under X11)
+this will require the creation of a new terminal emulation window,
+while in most environments it will not.
+If the mailcap entry specifies "needsterminal"
+and metamail is not running on a terminal
+(as determined by isatty(3),
+the \-x option,
+and the MM_NOTTTY environment variable)
+then metamail will try to run the command in a new terminal emulation
+window.
+Currently, metamail knows how to create new windows under the X11,
+SunTools, and WM window systems.
 .TP 8
 .B copiousoutput
-This flag should be given whenever the interpreter is capable of producing more than a few lines of output on stdout, and does no interaction with the user.  If the mailcap entry specifies copiousoutput, and pagination has been requested via the "\-p" command, then the output of the command being executed will be piped through a pagination program ("more" by default, but this can be overridden with the METAMAIL_PAGER environment variable).
+This flag should be given
+whenever the interpreter is capable of producing more than a few lines
+of output on stdout,
+and does no interaction with the user.
+If the mailcap entry specifies copiousoutput,
+and pagination has been requested via the "\-p" command,
+then the output of the command being executed will be piped through a pagination
+program
+("more" by default,
+but this can be overridden with the METAMAIL_PAGER environment variable).
 .SH BUILT-IN CONTENT-TYPE SUPPORT
-The metamail program has built-in support for a few key content-types.  In particular, it supports the text type, the multipart and multipart/alternative type, and the message/rfc822 types.  This support is incomplete for many subtypes -- for example, it only supports US-ASCII text in general.  This kind of built-in support can be OVERRIDDEN by an entry in any mailcap file on the user's search path.  Metamail also has rudimentary built-in support for types that are totally unrecognized -- i.e. for which no mailcap entry or built-in handler exists.  For such unrecognized types, metamail will write a file with a "clean" copy of the data -- i.e. a copy in which all mail headers have been removed, and in which any 7-bit transport encoding has been decoded.
+The metamail program has built-in support for a few key content-types.
+In particular,
+it supports the text type,
+the multipart and multipart/alternative type,
+and the message/rfc822 types.
+This support is incomplete for many subtypes \(en for example,
+it only supports US-ASCII text in general.
+This kind of built-in support can be OVERRIDDEN by an entry in any
+mailcap file on the user's search path.
+Metamail also has rudimentary built-in support for types that are totally unrecognized
+\(en
+i.e., for which no mailcap entry or built-in handler exists.
+For such unrecognized types,
+metamail will write a file with a "clean" copy of the data \(en
+i.e., a copy in which all mail headers have been removed,
+and in which any 7-bit transport encoding has been decoded.
 .SH FILES
-$HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap -- default path for mailcap files.
+$HOME/.mailcap:/etc/mailcap:/usr/share/etc/mailcap:/usr/local/etc/mailcap
+\(en default path for mailcap files.
 .SH SEE ALSO
 .BR run-mailcap "(1)",
 .BR mailcap.order "(5)",
@@ -61,15 +230,15 @@ RFC 1524 (<http://tools.ietf.org/html/rf
 .SH COPYRIGHT
 Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
 
-Permission to use, copy, modify, and distribute this material 
-for any purpose and without fee is hereby granted, provided 
-that the above copyright notice and this permission notice 
-appear in all copies, and that the name of Bellcore not be 
-used in advertising or publicity pertaining to this 
-material without the specific, prior written permission 
-of an authorized representative of Bellcore.  BELLCORE 
-MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
-OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
+Permission to use, copy, modify, and distribute this material
+for any purpose and without fee is hereby granted, provided
+that the above copyright notice and this permission notice
+appear in all copies, and that the name of Bellcore not be
+used in advertising or publicity pertaining to this
+material without the specific, prior written permission
+of an authorized representative of Bellcore.  BELLCORE
+MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY
+OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS",
 WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
 .SH AUTHOR
-Nathaniel S. Borenstein
+Nathaniel S.\& Borenstein

Reply via email to