HP-UX Reference (11i v3 07/02) - 1 User Commands A-M (vol 1)

e
elm(1) elm(1)
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)
Subject:
this is a test
Copies To: ...
...invokes editor, you compose message, then...
Your options now are:
a)ttachments e)dit message edit h)eader s)end it f)orget it.
What is your choice? s
mail sent!
If you "forget" the message, it is saved in $HOME/Canceled.mail.
File Mode with Redirection
To send a file by use of command-line redirection, use a command like:
$ elm j_doe < help.c
286 Hewlett-Packard Company 29 HP-UX 11i Version 3: February 2007