HP-UX Reference (11i v1 00/12) - 1 User Commands A-M (vol 1)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
e
elm(1) elm(1)
metamail provides external support for other Content-Types, as defined in one or more mailcap files.
The system mailcap file is /etc/mail/mailcap. You can define your own default mailcap file in
$HOME/.mailcap. You can also specify your own list of mailcap files by setting the MAILCAPS
environment variable. The mailcap files are searched in order until an entry is found that matches the
Content-Type and any qualifications.
A minimum mailcap entry consists of a line in the form:
content-type ; command
The command is the command that you would type to view a file of the indicated Content-Type, with the
string %s replaced by a file name. For example, to view body part that was HTML source text and had the
Content-Type text/html, you could have the entry
text/html; netscape %s
Similarly, for a GIF image file, you could have the entry
image/gif; xv %s
RFC 1521 defines a number of Content-Types that elm leaves for metamail to handle:
text/richtext
multipart/alternative
multipart/parallel
multipart/digest
message/partial
message/external-body
image/jpeg
image/gif
audio/basic
video/mpeg
application/octet-stream
application/postscript
Check the system mailcap file for entries that handle many of them.
EXTERNAL INFLUENCES
Environment Variables
HOME Your home (login) directory.
EDITOR If set and nonnull, provides a default value for the alteditor and editor string vari-
ables.
LANG If set and nonnull, determines the language in which messages are displayed. The default
is
C. See environ(5).
MAILCAPS If set, defines the search path for mailcap files used by metamail. The default is
$HOME/.mailcap:/etc/mail/mailcap
PAGER
If set and nonnull, provides a default value for the pager string variable.
SHELL If set and nonnull, provides a default value for the shell string variable.
TMPDIR If set and nonnull, provides a default value for the tmpdir string variable.
VISUAL If set and nonnull, provides a default value for the visualeditor string variable.
International Code Set Support
Single- and multibyte character code sets are supported.
EXAMPLES
Message Mode Example
To send a message without loading the main elm mail-processing program, use the simple command form
consisting of the name of the program followed by the recipient’s login name and optional address. elm
prompts for subject and copies, then starts an editor so you can compose the message (user responses are in
italic type):
$ elm j_doe
To: doe (John Doe)
HP-UX Release 11i: December 2000 − 28 − Section 1−−231
___
___