.\" @(#)$Id: Ref.guide,v 1.13 1996/10/28 16:58:01 wfp5p Exp $ .\" .\" Reference guide to the Elm mail system. .\" format with .\" troff tmac.n Ref.guide > Ref.format .\" .\" Elm is now in the public trust. Bug reports, comments, suggestions, flames .\" etc. should go to: .\" Bill Pemberton flash@virginia.edu .\" .\" (C) Copyright 1986,1987 Dave Taylor .\" (C) Copyright 1988-1996 Usenet Community Trust .\" .\" .\" .\" .po 1i .ds h0 .ds h1 .ds h2 .ds f0 .ds f1 .ds f2 .nr Hy 1 .nr Pt 1 .nr Pi 0 .lg 0 .nf .na .rs .za .sv |3.0i .ce 99 .ps 20 .ss 18 .vs 12 \f3The Elm Reference Guide\f1 .sp 4 .ps 12 .ss 14 .vs 14 \f2A comprehensive list of all commands, options and such to the \f3Elm\fP mail system\f1 .sp 3 The Elm Mail System (Version 2.5) .sp 2 Bill Pemberton, Elm Coordinator University of Virginia - ITC PO Box 9029 Charlottesville, VA 22906 .sp email: flash\s-1@\s+1virginia.edu .sp |9.0i \s18\f3\*(ct\f1\s12 Copyright 1986,1987 by Dave Taylor \s18\f3\*(ct\f1\s12 Copyright 1988-1996 by The USENET Community Trust .fi .ad .bp 1 .sv 5v .ce 99 .ps 14 .vs 16 \f3The Elm Reference Guide\f1 .ds h0 "Elm Reference Guide .ds h1 .ds h2 "Version 2.5 .ds f0 "Sept 1, 1996 .ds f1 .ds f2 "Page % .sp .ps 10 .ss 12 .vs 12 (The Elm Mail System, \*(h2) .sp \*(f0 .sp 2 Bill Pemberton, Elm Coordinator University of Virginia - ITC PO Box 9029 Charlottesville, VA 22906 .sp email: flash\s-1@\s+1virginia.edu .sp 2 Derived from \*QThe Elm Mail System, Version 2.0\*U by Dave Taylor Intuitive Systems Mountain View, California email: taylor\s-1@\s+1intuitive.com or limbo\s-1!\s+1taylor .ce 0 .sp 3 .hn 1 Introduction There are many parts to a complex software system and \f3The Elm Mail System\f1 is no different. This document describes fully all the options available in the mailer, including the command line options, the commands (in considerably more detail than in \f2The Elm Users Guide\f1) and the \f2.elm/elmrc\f1 file. To be more explicit, this document covers: a discussion of the \f2.elm/elmrc\f1 file, command line options of Elm, outgoing mail processing, responses of various commands, mail archive folders, the Alias system, system aliases etc, more on the Elm utilities, and a section for expert mail users. Without any further ado, then, let's get this show on the road!! .sp .ne 8 \" footnote for UNIX forces text to next page but leaves footnote & hdr .hn 1 "The .elm/elmrc File" Elm, like lots of other software on the .ux system, has the ability to automatically read in a configuration file at each invocation. The file must be called \f2elmrc\f1 and reside in the \f2.elm\f1 directory located in your home directory. It can have any of the entries below, in any order. If you are missing any entries, or if you don't have an \f2.elm/elmrc\f1 file, the default values (listed below for each option) or those values specified by your systems administrator in a system wide \f2elm.rc\f1 file are used. Note that those options below designated with \*q*\*u can be altered using Elm via the options screen, while those designated with a \*q+\*u can be placed on the options screen using the \f3configoptions\f1 variable. Also note that when you save a new \f2.elm/elmrc\f1 file via the \*q>\*u command of the options screen, it is (re)created including only those options that you have changed via your original \f2.elm/elmrc\f1 file or via the options screen. The format for each line of the \f2.elm/elmrc\f1 file is: .sp .nf .ft CW .zf .ti +.5i variable = value\f1 .fi .sp .ne 8 .hu String Variables .lp aliassortby* 1.0i You can have your alias display sorted by any of the following ways: .si 1.5i .lp alias 10n Sorts according to \f2aliasname\f1 for each address. .lp name 10n Sorts according to \f2username\f1 for each address. .lp text 10n Presents the aliases in the order found in the \f2aliases.text\f1 file. .ei .in 1.0i \" ei doesn't restore margin .sp Each of these fields can also optionally be prepended with the sequence \*Qreverse\-\*U to reverse the order of the sort. This doesn't imply anything about the order of the message in the \f2aliases.text\f1 file itself and affects only their order on the display screen. The default is \f2name\f1 order. .lp alteditor+ 1.0i The editor to use when mailing to a message that already includes text, as the builtin editor cannot handle that situation. Messages that already include text are forwarded messages and replies where the original message is included in the reply. This value is not needed if the \f3editor\f1 variable is not set to \*Qbuiltin\*U. .lp alternatives 1.0i This is a list of other machine/username combinations that you receive mail from (forwarded). This is used when the \f2group reply\f1 feature is invoked to ensure that you don't send yourself a copy of the outbound message. The default is a list of no alternatives. .lp attribution 1.0i When you \f3forward\f1 a message or \f3reply\f1 to it, you can optionally attribute the quoted text to its original author. Defining the attribution string here allows you to indicate the form that the attribution should take. The following sequences in the attribution will expand to a value (all values relate to message being replied to/forwarded). .sp .in 1.5i .ta 0.6i %F From address (same as %s in previous versions) .br %D Date the message was created .br %S Subject of the message .br %I Message ID .br %% A percent sign. .sp As a special case, %F can be modified as follows: .sp .in 1.5i .ta 0.6i %)F Name of the sender .br %>F Address of the sender .br \en A newline character .br \et A tab character. \e\f2c\fP The literal character ``\f2c\fP''. .sp Examples are: .sp .nf .in 1.5i .ft CW .zf attribution = According to %F: attribution = %F writes: attribution = %)F <%>F> writes: attribution = On %D %F wrote: .ft 1 .in 0 .fi .lp calendar* 1.0i This is used in conjunction with the \*q<\*u \f2scan message for calendar entries\f1 command, as the file to append any found calendar entries to. The default is \f2calendar\f1 in your home directory. .lp charset 1.0i This value is used only if the MIME (Multipurpose Internet Mail Extension) support is enabled. This specifies what international character set you use, if any, when composing outbound mail messages. If Elm detects that you are sending a message with any 8-bit national characters, then it will mark your message as being in this character set. If not (that is, your message contains just standard 7-bit characters) then Elm will mark your message as \*Qus-ascii\*U. The default depends upon your site's installation. \*Qiso-8859-1\*U is a common value. .lp compatcharsets 1.0i This is the list of character sets which are more or less a superset of US-ASCII. This enables Elm to display messages with \f3charset\f1=US-ASCII with the builtin pager, or your preferred pager, instead of calling \f2metamail\f1. \f3compatcharsets\f1 is only recognized if MIME support is configured. The ISO-8859-X character sets are defaulted. .lp configoptions 1.0i This is a list of letters that indicate which of the run-time configurable options you desire placed on the options screen (see section 7, \f3Commands\f1, for the \f3options\f1 command). There are 22 run-time configurable options, but only room for 15 on a 24-line screen. The default list is \f2^_cdefsopyv_am_un\f1. Two additional characters can be specified for formatting. Those are \*q_\*u, which adds a blank line, and \*q^\*u, which places the title message on that line instead of the bottom of the screen. The letters \*qi\*u, \*qq\*u, and \*qx\*u are reserved for \*Qreturn to index\*U, \*Qquit\*U, and \*Qexit\*U, respectively, and are not listed as part of the \f3configoptions\f1 list. The options controlled by each letter are: .sp .in 1.5i .ta 0.5i a A)rrow cursor \f2(arrow)\f1 .br b B)order on copy \f2(prefix)\f1 .br c C)alendar file \f2(calendar)\f1 .br d D)isplay mail using \f2(pager)\f1 .br e E)ditor (primary) \f2(editor)\f1 .br f F)older directory \f2(maildir)\f1 .br h H)old sent message \f2(copy)\f1 .br j J) reply editor \f2(alteditor)\f1 .br k K) pause after pager \f2(promptafter)\f1 .br l A(l)ias Sorting \f2(aliassortby)\f1 .br m M)enu display \f2(menu)\f1 .br n N)ames only \f2(names)\f1 .br o O)utbound mail saved \f2(sentmail)\f1 .br p P)rint mail using \f2(print)\f1 .br r R)eply copies msg \f2(replycopy)\f1 .br s S)orting criteria \f2(sortby)\f1 .br t T)ext editor (~e) \f2(easyeditor)\f1 .br u U)ser level \f2(userlevel)\f1 .br v V)isual Editor (~v) \f2(visualeditor)\f1 .br w W)ant Cc: prompt \f2(askcc)\f1 .br y Y)our full name \f2(fullname)\f1 .br z Z) signature dashes \f2(sigdashes)\f1 .lp displaycharset 1.0i This is the character set which is supported by your terminal. The default depends on your site's installation but is usually US-ASCII. For sites with .xw support, ISO-8859-1 is a reasonable default. .lp easyeditor+ 1.0i The editor to be used by the \*Q~e\*U escape within the builtin editor. The default value is the value of the configuration variable \f2emacs_editor\f1 (see \f2The Elm Configuration Guide\f1). .lp editor* 1.0i The editor to use when typing in new mail. If you select \*Qnone\*U or \*Qbuiltin\*U you'll get a Berkeley Mail style interface for all mail that doesn't already have text in the buffer (e.g. a reply, mail with a \*Qsignature\*U, etc.) There are two possible formats for it, either a command that can have a filename appended to it before being executed, or a string that contains the metasequence \*Q%s\*U which is replaced by the name of the file before being executed. Examples of each are: .nf .in 1.5i .ft CW .zf editor = emacs \-nw editor = emacs \-nw %s \-f text-mode \-f turn-on-auto-fill .ft 1 .in 1.0i .fi The default is to use the value of $EDITOR in your current environment, and if not set, an editor selected by the person who configured Elm for your system. .lp escape 1.0i The character used with the builtin editor (see \f3editor\f1 above) to escape from text entry to input a command. When a line begins with this character, the builtin editor interprets it as a command rather than as text to add. The default is \*q~\*u (tilde). .lp fullname* 1.0i This is the name the mailer uses in messages you send. It is highly recommended that you use your full name and nothing strange or unusual, as that can appear extremely rude to people receiving your mail. The default is to use the \*Qgcos\*U field from the \f2/etc/passwd\f1 file on systems that use this field to store full names, and to use the contents of the \f2.\|fullname\f1 file in your home directory on other systems. Note that many mail transport agents create this line for you, in these cases this option has no effect. .lp fwdattribution 1.0i This variable further refines how forwarded messages are presented. If undefined or set to an empty value, an \f2attribution\f1 string is placed before the message. Further, if you choose to initially edit the message, the \f2prefix\f1 will be prepended to each line. This is the default behavior. If this variable is set, the forwarding behavior is changed so that the beginning and end of the forwarded message are marked, and the \f2prefix\f1 is never added. The beginning and end markers are derived from this variable, and its value is subject to the same expansions as the \f2attribution\fP value, with one addition: .in +0.5i %[\f2left\fP|\f2right\fP] .in +0.5i For the opening attribution (at the top of the forwarded message), the \f2left\fP string is displayed. For the closing attribution (at the bottom of the forwarded message), the \f2right\fP string is displayed. Any attribution sequences, including ``%'' escapes (but excepting another ``%[...]''), may be used here. .in -1.0i If, for example, this variable is defined as: .sp .in +0.5i .ft CW .zf fwdattribution = --- %[begin|end] forwarded message from %F --- .ft 1 .in -0.5i .sp then the message will appear as: .in +0.5i .nf .ft CW .zf --- begin forwarded message from Joe User --- . . \f2(forwarded message appears here)\fP . . --- end forwarded message from Joe User --- .ft 1 .fi .in -0.5i .lp hostdomain 1.0i This is the domain name of your system. This variable is only valid in the system-wide \f2elm.rc\f1 file. It is only necessary if the value returned by the \f2getdomainname\f1 system call is incorrect for your mail use or if that system call is unavailable on your system. If this variable is specified, then the \f3hostfullname\f1 variable must also be specified. .lp hostfullname 1.0i This is the \*Qfully qualified domain name\*U of your system. This variable is only valid in the system-wide \f2elm.rc\f1 file. It is only necessary if the value returned by the \f2getdomainname\f1 and \f2gethostname\f1 system calls are incorrect for your mail use or if those system calls are unavailable on your system. It is required if either the \f3hostdomain\f1 or the \f3hostname\f1 variables are used within the system-wide \f2elm.rc\f1 file. .lp hostname 1.0i This is the local node-name of your system. This variable is only valid in the system wide \f2elm.rc\f1 file. It is only necessary if the value returned by the \f2gethostname\f1 system call is incorrect for your mail use or if that system call is unavailable on your system. If this variable is specified, then the \f3hostfullname\f1 variable must also be specified. .lp incomingfolders 1.0i This is a list of files that should be treated as if they were spool files. The folders listed here will be opened as if the -M flag were used. .lp localsignature 1.0i See \f3signature\f1. .lp maildir* 1.0i This is your folder directory. When you specify a folder name beginning with the \*q=\*u metacharacter,\s-2\u1\d\s0 .fn 1. Note that \*q%\*u and \*q+\*u are synonymous with \*q=\*u throughout Elm. .ef it stands for this directory name. That is, if you save a message to folder \f2=stuff\f1 the \*q=\*u is expanded to the current value of \f3maildir\f1. The default is the directory \f2Mail\fP in your home directory. .lp pager* 1.0i This is the program to be used to display messages. You can specify \*Qbuiltin\*U or the name of any standard pager. If you use \*Qbuiltin+\*U, each screenfull of displayed message is \*Qpaged\*U from the top of your screen with a title line, while \*Qbuiltin\*U simply \*Qscrolls up\*U subsequent screenfulls once it has \*Qpaged\*U the first screenfull. The default is to use the value of $PAGER in your current environment, and if not set, a pager selected by the person who configured Elm for your system, quite likely \*Qbuiltin+\*U. .lp precedences 1.0i Some mail transports look at a \*QPrecedence\*U header in outbound mail messages to determine how to deliver the message. The Elm header editing menu allows you to place a precedence on your mail messages. By default, Elm allows any value to be specified as the message precedence. This option may be used to restrict the allowed precedences to a particular list. For example, you might say: .nf .in 1.5i .ft CW .zf precedences = special-delivery air-mail first-class bulk junk .ft 1 .in 1.0i .fi Exactly what precedences your mail transport supports and what they do (if anything at all!) will vary from site to site. The distinction between the \*QPrecedence\*U and \*QPriority\*U headers is subtle: the precedence tells the mail system how to handle the message and the priority tells the recipient how important the message is. Although these are quite different things, they are often related. This option will also allow you to associate message priorities with precedences. For example, you might say: .nf .in 1.5i .ft CW .zf precedences = special-delivery:urgent air-mail:urgent first-class bulk junk .ft 1 .in 1.0i .fi In this example, if you select an \*Qair-mail\*U precedence then the message priority defaults to \*Qurgent\*U. If you select a \*Qfirst-class\*U precedence then no special priority is implied. The priorities given in this field are used only if you have not already assigned a priority to your message, and even if one is assigned via \f3precedences\f1 you can always go back and change it. .lp prefix+ 1.0i When you \f3reply\f1 to a message or \f3forward\f1 a message to another person, you can optionally include the original message. Defining the prefix value here allows you to indicate what the prefix of each included line should be. The default is \*Q>\ \*U (specified as \*Q>_\*U \(em underscore is interpreted as space) and is standard in the .ux community. .lp print* 1.0i This is the command used for printing mail messages. If the command contains \*Q%s\*U then it is replaced with the name of a temporary file that contains the message(s) to print. Otherwise, the message(s) are piped into the printing command. .lp printhdrs 1.0i When printing messages, certain headers are \*Qweeded\*U out and only the selected headers are printed. This allows you to specify exactly which headers should be selected when printing. It is a list of header names, such as: .nf .in 1.5i .ft CW .zf printhdrs = From: To: Cc: Subject: Date: .ft 1 .in 1.0i .fi See the \f2readmsg(1)\fP manual page for additional information on how to specify header weeding lists. .lp receivedmail 1.0i This is the folder to which incoming mail is saved after you've read it. When you answer \f2no\f1 to \*QKeep unread messages in your incoming mailbox?\*U or \f2yes\f1 to \*QStore read messages in your \*Qreceived\*U folder?\*U, this is where the messages go. The default is \*Q=received\*U, that is, a folder called \f2received\f1 in your \f3maildir\f1 directory. .lp remotesignature 1.0i See \f3signature\f1. .lp sentmail* 1.0i This is the folder to which a copy of outgoing mail is automatically saved. This is only done if the \f3copy\f1 boolean variable is set ON. Also note that if the \f3savebyname\f1 and/or \f3savebyalias\f1 boolean variable is enabled then this folder may be ignored since the program may save to a folder that has the same name as the login of the person you're sending to. Whether or not a copy is saved, and to what folder, can be changed just prior to sending a message (see the \f3copy\f1 command of the mail command sub-menu in section 7, \f3Commands\f1). The default is \*Q=sent\*U, that is, a folder called \f2sent\f1 in your \f3maildir\f1 directory. .lp shell 1.0i This defines the shell to use when doing \*q!\*u escapes and such. The default is to use the value of $SHELL in your current environment, and if not set, a shell selected by the person who configured Elm for your system. Note that the \*q!\*u escape is optional and may not be enabled in your version of Elm. .lp signature 1.0i This defines the file that is automatically appended to all outbound mail before the editor is invoked. Furthermore, if you'd like a different signature file for \*Qlocal\*U mail and \*Qremote\*U mail (remote being via other hosts), you can alternatively define two variables, \f3localsignature\f1 and \f3remotesignature\f1, to have the same functionality. The default is to not have signatures appended to your messages. .lp sortby* 1.0i You can have your folder sorted in any of the following ways: .si 1.5i .lp from 10n Sorts according to whom each message is \f2from\f1. .lp lines 10n Sorts \f2shortest\f1 to \f2longest\f1 by message. .lp mailbox 10n Leaves the messages in the order found in the folder. .lp received 10n Sorts \f2least recently received\f1 to \f2most recently received\f1. .lp sent 10n Sorts \f2least recently sent\f1 to \f2most recently sent\f1. .lp status 10n Sorts by \f2priority\f1, \f2action\f1, \f2new\f1, \f2tagged\f1, then \f2deleted\f1. .lp subject 10n Sorts according to the \f2subject\f1 of each message. .ei .in 1.0i \" ei doesn't restore margin .sp Each of these fields can optionally be prepended with the sequence \*Qreverse\-\*U to reverse the order of the sort. This doesn't imply anything about the order of the messages in the folder itself and affects only their order on the index screen. The default is \f2mailbox\f1 order. .lp tmpdir 1.0i Use this if you want to define your own directory for the temporary file Elm creates while running. This is only necessary if using the system temporary directory could cause problems, such as when not all NFS clients mount the common temporary directory, or when the temporary directory is prone to being cleared periodically. The default entry of the system temporary directory is normally OK. .lp visualeditor+ 1.0i The editor to be used by the \*Q~v\*U escape within the builtin editor. The default value is the value of the configuration variable \f2vi_editor\f1 (see \f2The Elm Configuration Guide\f1). .lp weedout 1.0i When specifying this option, you can list headers that you \f2don't\f1 want to see when you are displaying a message. This list can continue for as many lines as desired, as long as the continued lines all have leading indentation. All headers in this entry append to the default weedout list. There are two special header flags. The first, \*Q*clear-weed-list*\*U, clears the default list. The second, \*Q*end-of-user-headers*\*U, terminates the entry, in case the following lines look like they might be more headers for the list. The default \f3weedout\f1 list includes the following header strings: .sp .in 1.5i .ft CW .zf .nf \&>From \&Apparently-To: \&Content-Length \&Content-Transfer-Encoding \&Content-Type: \&From \&In-Reply-To: \&MIME-Version \&Message-Id: \&Newsgroups: \&Received: \&References: \&Status: \&X-Mailer: .ft 1 .fi .sp .in 1.0i Note that the \*QFrom\*U entry weeds out both \*QFrom:\*U and the \*QFrom\ \*U headers. If you just want to weed out \*QFrom\ \*U, for example, put a \*Q*clear-weed-list*\*U at the start of the list followed by \*QFrom_\*U or \*QFrom\ \*U. .in 0 .ne 8 .hu Numeric Variables .lp bounceback 1.0i This is a hop count threshold value and allows you to set up the mailer so that when you send mail more than \f2n\f1 machines away, it'll automatically include a \*QCc:\*U to you through the remote machine. In practice this should be very rarely used. Note that this refuses to bounce mail off an Internet address. The default is to have it set to zero, which disables the function. .lp builtinlines 1.0i This is used to determine if the builtin pager should be used on some messages even if you would usually use an external pager program. There are two ways of determining whether the builtin pager should be used. If you want any message that is shorter than \f2n\f1 lines to use the internal pager, set this variable to \f2n\f1. If you want the builtin pager to be used if the message is \f2m\f1 lines shorter than the number of lines on your screen, set this variable to \f2\-m\f1. Setting this variable to zero will result in the message always being sent through your external pager. This variable is used only if the pager is not set to the builtin pager. The default is \-3. .lp readmsginc 1.0i This variable modifies the display of the message \*QReading in \f2foldername\f1, message: #\*U, which is displayed when reading a new folder. The message count is normally updated as each message in the folder is read. If you are on a slow terminal and are reading a folder with a large number of messages, the time it takes to redraw the message count can significantly exceed the time it takes to simply read the folder. .sp The \f3readmsginc\f1 variable controls the frequency with which the message count is updated. If this parameter is set to 50, the message count will be updated after every 50 messages (i.e., at 50, 100, 150, and so forth). The default value for this parameter is 1. If a value of less than 1 is specified for this parameter, the value is ignored, and the default value is used instead. .lp sleepmsg 1.0i This variable modifies the time Elm waits after displaying a transient message before erasing it and continuing. It can be set to zero to suppress the wait entirely. It is in units of whole seconds. .lp timeout 1.0i On more advanced systems, it's nice to start up the mailer in a window and let it sit in background until new mail arrives (see \f2wnewmail\f1 for another window based program), at which point it can be brought up to the forefront of the system and read. In this case, it would be quite convenient to have the mailer internally resynchronize every so often. This option specifies the number of seconds that this occurs. .sp This is also useful for non-windowing terminals. For example, you can leave Elm running at night (I usually do) and when you come in in the morning it'll be all ready to read your mail! .sp The default is a 300 second (5 minute) timeout period. .lp userlevel* 1.0i This is what the program uses to determine the relative level of sophistication of the user. The values are \*q0\*u for a new user (the default), \*q1\*u for someone familiar with Elm, and \*q2\*u for experts. Some advanced features are hidden from novice users, while experts get less verbose prompt messages. The default is \*q0\*u. .br .ne 8 .hu Boolean Variables The value assigned to boolean variables can be \*QON\*U or \*QOFF\*U only. .lp allow_setuid 1.0i The default value is OFF, and you almost certainly should \f3not\fP change it. This variable is valid only in the system-wide \f2elm.rc\fP file. Normally, when Elm starts up, it verifies that it has \f3not\fP been installed with \*Qsetuid\*U privileges. If the check fails, it displays an error and terminates. This check is performed because many people, when encountering configuration or installation problems (particularly locking problems), simply install Elm \*Qsetuid=root\*U rather than fixing the problem. This can create a significant security hazard. If you insist on running Elm in this configuration, you may bypass the check by turning this setting ON. (But then don't say we didn't warn you.) .lp alwaysdelete 1.0i Set ON to set the default answer to the \*QDelete messages?\*U prompt to \f2yes\f1 (see the \f3quit\f1 command in section 7, \f3Commands\f1, and the \f3ask\f1 and \f3askdelete\f1 variables below). This default answer also applies to deletions from the alias system. The default for \f3alwaysdelete\f1 is OFF. .lp alwayskeep 1.0i Set ON to set the default answer to the \*QKeep unread mail in incoming mailbox?\*U prompt to \f2yes\f1. However, if you set \f3alwaysstore\f1 OFF or answer \f2no\fP to the \*QStore read mail in \*Qreceived\*U folder?\*U prompt, it is presumed that you also want to keep your unread mail in the incoming mailbox, so the value of \f3alwayskeep\f1 is ignored in those cases. See the \f3quit\f1 command in section 7, \f3Commands\f1, and the \f3ask\f1, \f3askkeep\f1, and \f3alwaysstore\f1 variables below for more details. The default for \f3alwayskeep\f1 is ON. .lp alwaysstore 1.0i Set ON to set the default answer to the \*QStore read mail in \*Qreceived\*U folder?\*U prompt to \f2yes\f1 (see the \f3quit\f1 command in section 7, \f3Commands\f1, and the \f3ask\f1 and \f3askstore\f1 variables below). The default for \f3alwaysstore\f1 is OFF. .lp arrow* 1.0i Sometimes you are forced to use a slow or \*Qdumb\*U terminal. Set ON to make the current message pointer the \*Q\->\*U sequence rather than the inverse bar. Note that this is overridden by the \*Q\-a\*U command line option (see section 3, \f3Command Line Options\f1). The default is OFF. .lp ask 1.0i Set OFF to tell Elm that you'd rather not be asked \*QDelete messages?\*U and such each time you quit, resynchronize, change folders, or return from the alias system; but that it should just use the values of \f3alwaysdelete\f1, \f3alwayskeep\f1, and \f3alwaysstore\f1 without prompting. (\f3Ask\f1 does this by setting the values of \f3askdelete\f1, \f3askkeep\f1, and \f3askstore\f1--so when you save your elmrc, \f3ask\f1 will be replaced by those three variables.) Note that when you quit \f3Elm\f1, if you use \*qQ\*u instead of \*qq\*u, you will never be questioned, regardless of how you have \f3ask\f1 set. See the \f3quit\f1 commands in section 7, \f3Commands\f1, and the \f3alwaysdelete\f1, \f3askdelete\f1, \f3alwayskeep\f1, \f3askkeep\f1, \f3alwaysstore\f1, and \f3askstore\f1 variables above for more details. The default for \f3ask\f1 is ON. .lp askcc+ 1.0i Set OFF to allow sending mail without being presented the \*QCopies to:\*U prompt for each message. This still allows you to explicitly include addresses in the \*QCc:\*U list via either the header editor or \*Q~c\*U in the builtin editor (see section 9, \f3Using Elm with \*Qeditor = none\*U\f1). The default is ON. .lp askdelete 1.0i Set OFF to tell Elm that you'd rather not be asked \*QDelete messages?\*U each time you quit, resynchronize, change folders, or return from the alias system; but that it should just use the value of \f3alwaysdelete\f1 without prompting. Note that when you quit \f3Elm\f1, if you use \*qQ\*u instead of \*qq\*u, you will never be questioned, regardless of how you have \f3askdelete\f1 set. See the \f3quit\f1 command in section 7, \f3Commands\f1, and the \f3alwaysdelete\f1 variable above for more details. The default for \f3askdelete\f1 is ON. .lp askkeep 1.0i Set OFF to tell Elm that you'd rather not be asked \*QKeep unread messages in incoming mailbox?\*U each time you quit, resynchronize, change folders, or return from the alias system; but that it should just use the value of \f3alwayskeep\f1 without prompting. Note that when you quit \f3Elm\f1, if you use \*qQ\*u instead of \*qq\*u, you will never be questioned, regardless of how you have \f3askstore\f1 set. See the \f3quit\f1 command in section 7, \f3Commands\f1, and the \f3alwayskeep\f1 variable above for more details. The default for \f3askkeep\f1 is ON. .lp askstore 1.0i Set OFF to tell Elm that you'd rather not be asked \*QMove read messages to received folder?\*U each time you quit, resynchronize, or change folders; but that it should just use the value of \f3alwaysstore\f1 without prompting. Note that when you quit \f3Elm\f1, if you use \*qQ\*u instead of \*qq\*u, you will never be questioned, regardless of how you have \f3askstore\f1 set. See the \f3quit\f1 command in section 7, \f3Commands\f1, and the \f3alwaysstore\f1 variable above for more details. The default for \f3askstore\f1 is ON. .lp askreplycopy 1.0i Set ON for Elm to ask whether to copy the text of each message replied to into the edit buffer. Otherwise Elm will automatically use the value of \f3replycopy\f1. The default for \f3askreplycopy\f1 is ON. .lp autocopy+ 1.0i Set ON for Elm to automatically copy the text of each message replied to into the edit buffer. Otherwise you may be prompted as to whether you want the message included in your reply; see the \f3askreplycopy\f1 and \f3replycopy\f1 variables for more details; see also the \f3prefix\f1 variable under \f3String Variables\f1 in section 2 for how copied text is marked. \f3Autocopy\f1 works by setting \f3replycopy\f1 to ON and \f3askreplycopy\f1 to OFF, so \f3autocopy\f1 will not appear in a \f2.elm/elmrc\f1 saved by \f3Elm\f1. .lp confirmappend 1.0i Set ON to make Elm ask for permission to append messages to the end of any file that already exists. Whether the file is a mail folder in the user's mail directory or an ordinary file makes no difference. The default is OFF. .lp confirmcreate 1.0i Set ON to make Elm ask for permission before it creates a new file to store messages in. It makes no difference whether the new file would be a mail folder in the user's mail directory or an ordinary file. The default is OFF. .lp confirmfiles 1.0i This allows you to have some last resort control over Elm when a message would be appended (by copy, save, or auto-cc) to an existing file which is not a folder in your mail directory (see the \f3maildir\f1 variable under \f3String Variables\f1 in section 2). Set ON to make Elm ask for permission to append a message to the end of an ordinary file, otherwise it silently adds the message to the end of the specified file whether it is a folder or not. The default is OFF. .lp confirmfolders 1.0i Set ON to make Elm ask before creating new mail folders in your mail directory (see the \f3maildir\f1 variable under \f3String Variables\f1 in section 2), otherwise it silently creates new mail folders whenever a copy of a message is going to be stored in a folder that does not already exist. See the \f3copy\f1, \f3savebyname\f1, \f3savebyalias\f1, and \f3forcename\f1 variables below for additional information about copying messages. The default for \f3confirmfolders\f1 is OFF. .lp confirmtagsave 1.0i Set ON to make Elm ask before saving or copying tagged messages to a folder when the cursor is on an untagged message. The default for \f3confirmtagsave\f1 is ON. .lp copy+ 1.0i Set ON to have silent copies made of all outgoing mail. Where the copy of the message is saved is determined by the \f3maildir\f1 and \f3sentmail\f1 string variables and the \f3savebyname\f1, \f3savebyalias\f1, and \f3forcename\f1 boolean variables. Whether a copy is saved and to which folder can also be set prior to sending a message \(em see the \f3copy\f1 command of the mail command sub-menu in section 7, \f3Commands\f1, for details. The default for \f3copy\f1 is OFF. .lp editflush 1.0i Set ON to have Elm flush the keyboard input buffer after exiting an external editor and before displaying the post-edit/pre-send menu. This can be especially important when running Elm under the X Window System, where accidental keystrokes in the Elm window can make things messy. The default for \f3editflush\f1 is ON. .lp forcename 1.0i Set ON to force creation of folders for copies of outbound mail by the recipient name. For complete details of how to enable automatic copying of outbound messages, see the \f3copy\f1, \f3savebyname\f1, and \f3savebyalias\f1 boolean variables. The default is OFF. .lp forms 1.0i Set ON to enable the generation of \*Qforms\*U type messages. See the \f2Elm Forms Mode Guide\f1 for further information about mail forms. .lp keepempty 1.0i The mail system has a habit of deleting folders when you've removed everything from them. Set ON to preserve empty folders as zero-length files. Note that this option does not apply to your incoming mailbox. The default is OFF. .lp menu* 1.0i Set OFF to inhibit the menu display on all screen displays within Elm. Note that this is overridden by the \*Q\-m\*U command line option (see section 3, \f3Command Line Options\f1). The default is ON. .lp metoo 1.0i Set ON to get a copy of mail you send to a mailing list you are on, otherwise you do not get a copy of such messages. The default is OFF. .lp movepage 1.0i Set ON to enable commands that move through the folder by pages (see the \*q+\*u, \*q\-\*u, \f2\f1, and \f2\f1 keys in section 7, \f3Commands\f1) to move the current message pointer to the top of that page of messages. Set OFF to not alter the current message pointer location when moving through pages. The default is OFF. .lp names* 1.0i Set OFF to display the primary recipients' addresses on your screen with their full names when you send a message. Set ON to display only the full names. The default is ON. .lp noheader 1.0i Set ON to not include the headers of messages when copying a message into the edit buffer for replying or forwarding (see the \f3autocopy\f1, \f3askreplycopy\f1, and \f3replycopy\f1 variables above.) The default is ON. .lp pointnew 1.0i Set ON to cause the current message pointer to point to the first new message in your incoming mailbox when started, instead of at message #1 of the index. This has no effect for other folders since they are not expected to have \*Qnew\*U mail. The default is ON. .lp promptafter+ 1.0i Set ON to display a command prompt rather than the index screen when exiting from an external pager. This variable has no effect on the builtin pager. See the \f3pager\f1 variable under \f3String Variables\f1 in section 2 to specify which pager to use to read messages. If your external pager immediately exits when it reaches the end of the message, you should set \f3promptafter\f1 ON so that the last screen of the displayed message is not immediately replaced by the index screen. If your external pager doesn't exit until you command it to, you have a choice. If you usually want to see the index screen before issuing a command, setting this variable OFF eliminates the extra keystroke needed to return to the index screen. If you usually don't need to see the index screen before issuing the next command, setting it ON allows you to enter your next command without waiting for the index screen to be redrawn. The default is ON. .lp replycopy 1.0i Set ON to have Elm copy each message being replied to into the edit buffer by default. If \f3askreplycopy\f1 is ON, Elm will prompt you each time you reply to a message; if \f3askreplycopy\f1 is OFF, Elm will automatically use the value of \f3replycopy\f1. The default is ON. .lp resolve 1.0i Set ON to move the current message pointer to the next message on the index when a mail message is \*Qdealt with\*U through deleting, undeleting, saving, forwarding, etc. or set OFF to leave the current message pointer unchanged. The default is ON. .lp "savebyalias, savebyname" 1.0i One of the problems with electronic mail systems is that one tends to get very large, one-dimensional (flat) files that contain lots of completely unrelated mail. Elm can use a more intelligent algorithm: for incoming mail, when you \f3save\f1 or \f3copy\f1 it (see section 7, \f3Commands\f1), the default folder is the login name of the person who sent you the message or the name of an alias you have created for that person (changed by pressing anything other than \f2\f1 of course). Similarly, when sending mail, instead of just blindly saving it to the \f3sentmail\f1 folder, Elm can save it to a folder that is the login name of the recipient of the mail, or their alias.\s-2\u2\d\s0 .fn 2. When sending to a group, it's saved to the login name or alias of the first person in the list only. .ef Set \f3savebyname\f1 ON to enable saving by the login name. Set \f3savebyalias\f1 ON to enable saving by the name of an alias of the login name, if one exists. If \f3forcename\f1 is OFF (see above), the copy is saved to that folder only if the folder already exists. In practice, this means that important people that you communicate with (those that you tend to save mail from) have folders that are actually \f2a recorded log of the discussion in both directions\f1 and others (random mailings) are all stuffed in the \f3sentmail\f1 folder for easy perusal and removal (see the \f3sentmail\f1 variable under \f3String Variables\f1 in section 2). If you always want to save copies of outgoing messages in separate folders by recipient login name, you'll want to set \f3forcename\f1 ON. The default for \f3savebyname\f1 and \f3savebyalias\f1 is ON. .lp showmlists 1.0i If this is on, the mailing list mode of the display will automatically be turned on. For more information on this, see the \f3M\f1 command. The default is OFF. .lp showreply 1.0i If this is on, messages that you have replied to will have r for their status. .lp sigdashes+ 1.0i Set ON to tell Elm that you wish to follow the convention of prefixing your signature with \*Q\f2newline dash dash blank newline\f1\*U. This is placed in your message before your signature file (see the \f3signature\f1, \f3localsignature\f1, and \f3remotesignature\f1 variables under \f3String Variables\f1 in section 2). If OFF, the signature file, if any, is placed at the end of the message without any prefix. The default is ON. .lp softkeys 1.0i Set ON to tell Elm that you have an HP terminal with the HP 2622 function key protocol and that you'd like to have the function keys available while in the program. The default is OFF. .lp titles 1.0i Set ON to have the first line of a message titled with: .sp .ft CW .zf .ps 9 .nf .tl ' Message \f2N/M\fP from \f2username\fP''\f2date\fP at \f2time\f1 ' .fi .ps 10 .ft 1 .sp where all the information is extracted from the message. This is especially useful if you weed out all the headers of each message with a large \f3weedout\f1 list (see the \f3weedout\f1 variable under \f3String Variables\f1 in section 2). The default is ON. .lp usetite 1.0i Set ON to enable use of the \f2termcap/terminfo\f1 \f3ti/te\f1 capabilities. Many terminal emulators require it (not the least of which is the OpenLook \f2cmdtool\f1). Some terminal emulators clear the screen on \f3te\f1 (some \f2xterm\f1s). Set OFF to disable use of \f3ti/te\f1. Note that this is overridden by the \*Q\-t\*U command line option (see section 3, \f3Command Line Options\f1). The default is ON. .lp weed 1.0i Set ON to have Elm \*Qweed out\*U certain headers from displayed messages, that is, not display them. The \f3weedout\f1 variable under \f3String Variables\f1 in section 2 allows you to custom define the set of headers you would like to not have displayed while reading messages. The default for the \f3weed\f1 variable is ON. .in 0 .sp .sp For a better idea of how this all works, here's a sample \f2.elm/elmrc\f1 file. While looking through it, notice that you can have lots of comments and blank lines for readability and that you can also use \*Qshell variables\*U and the \*q~\*u (tilde) metacharacter for your home directory, and they are expanded accordingly when read in by the mailer. Note that this was automatically saved by the Elm program on the fly from the options screen. .sp .ft CW .zf .nf # # .elm/elmrc - options file for the ELM mail system # # Saved automatically by ELM 2.5 for Elm Development Group # # This file allows you to tailor Elm. # # The lines beginning with "#" (like this one!) are comments. # # Some of the option settings are commented out with "###". This means # that you do NOT have a value set for the option, and the system default # will be used. (The value shown is the default at the time this file # was created.) If you wish to enable one of these options, you MUST # delete the "###" to de-comment the entry. # # For the yes/no settings, say ON for yes and OFF for no. # # For more detailed description of these settings, see the Elm Reference Guide. # # --- Table of Contents --- # # 1. General Program Configuration Options # 2. Main Message Selection Screen Options # 3. Message Display/Pager Options # 4. Editor Options # 5. Message Composition Options # 6. Signature Options # 7. Program Termination/Folder Cleanup Options # 8. Folder Handling Options # 9. MIME and Character Set Options # #----------------------------------------------------------------------- # # Section 1: General Program Configuration Options # # Are we good at it? 0=beginner, 1=intermediate, 2 and above=expert. # Lower levels give more verbose prompts. Higher levels make advanced # options available. userlevel = 2 # After displaying a transient message, Elm will pause this many seconds # before erasing it. Can be 0 or a positive integer. sleepmsg = 2 # After this many seconds of inactivity, Elm will re-check the mailbox # for new messages. timeout = 60 # Enable AT&T Mail forms support? forms = OFF # Want to use HP 2622 terminal softkeys? # You had better be running on that sort of terminal if you turn this on! softkeys = OFF # Would you like to use termcap/terminfo ti/te (screen switch) entries? usetite = ON # When initially reading in a mail folder, the status display is updated # whenever this many more messages are processed. A large number helps # avoid lots of output on slow terminal connecitons. readmsginc = 5 # Command to print a message. print = lpr \-Plw2 # Command to use for shell escapes. shell = /bin/zsh # Directory to use for temporary files. tmpdir = /home/wfp5p/.elm/tmp/ # Pathname to the saved calendar entries file. calendar = ~/.Agenda # Space-delimited list of alternative addresses that appear in your # mail messages (such as your addresses on other machines). This allows # Elm to recognize which messages are to and from you. Stuff like # "user@*.dom.ain" works here. alternatives = wfp5p@*virginia.edu flash@virginia.edu #----------------------------------------------------------------------- # # Section 2: Main Message Selection Screen Options # # Mark selected message with "->" rather than the inverse video bar? arrow = OFF # Display the three-line "mini-menu" of commands? menu = ON # How to sort the display of messages in a folder. "Reverse Sent" by default. sortby = Reverse\-Received # Should mailing list info be displayed for messages at startup? # The "M" command toggles this on and off. showmlists = OFF # When "showmlists" is off, a single-character mark is displayed # to indicate who the message is to. This four-character string # defines the values to use for the mark. The four characters are: # - Mark for mail to you and nobody else. # - Mark for mail to you and other recipients. # - Mark for mail to multiple recipients, and you are on the CC list. # - Mark for mail not addressed directly to you (e.g. mailing lists) # An underscore "_" in this list will display as a blank. # the defaul value is _TC* # tochars = ___* # Should messages to which you've replied be shown with an "r" mark? showreply = ON # Start up by pointing to the first new message received, if possible? pointnew = ON # When moving to next or previous page of messages, should the current # message pointer also move onto that page? movepage = ON # Increment the message pointer only after the message has been fully # disposed (saved or deleted)? If OFF, then the message pointer is # incremented after you do anything that touches the message. resolve = ON #----------------------------------------------------------------------- # # Section 3: Message Display/Pager Options # # Program to use for displaying messages. "builtin" is recommended. pager = builtin+ # Display message title when displaying pages of message? titles = ON # Prompt for a command after the external pager exits? promptafter = ON # Enable use of the "weedout" list defined below? weed = ON # What headers I DON'T want to see, ever. weedout = "Path:" "Via:" "Sent:" "Date" "Status:" "Original" "Phase" "Subject:" "Fruit" "Sun" "Lat" "Buzzword" "Return" "Posted" "Telephone" "Postal\-Address" "Origin" "X\-Sent\-By\-Nmail\-V" "Resent" "X\-Location" "Source" "Mood" "Neuron" "Libido" "To:" "X\-Mailer:" "Full\-Name:" "X\-HPMAIL" "Cc:" "cc:" "Mmdf" "Network\-" "Really\-" "Sender:" "Post" "Message\-" "Relay\-" "Article\-" "Lines:" "Approved:" "Xref:" "Organization:" "*end\-of\-user\-headers*" #----------------------------------------------------------------------- # # Section 4: Editor Options # # Name of editor to use for composing messages. "none" or "builtin" # uses the simple built-in editor. editor = none # Name of editor to use for replies that have text. alteditor = jed # The character to use in the built-in editor for entering commands. escape = ~ #----------------------------------------------------------------------- # # Section 5: Message Composition Options # # The full user name for outbound mail. NOTE: Many mail systems add # From: lines on their own and this setting has no effect!!! If your # system is one of those, you might want to try things such as the # "chfn" command or setting the NAME environment parameter. fullname = Bill Pemberton # Would you like to be asked for Carbon-Copy addresses when sending a message? askcc = ON # When you send a message to an alias that contains you, would you # like to receive a copy of the message? metoo = OFF # When replying to a message, ask "Copy message?" into editing buffer? # If OFF, then the "replycopy" action is taken without asking. askreplycopy = ON # Should the default for the "Copy message?" question be "yes"? replycopy = OFF # When messages are copied into the outbound buffer, don't include headers? # If OFF, just the message body with no headers is copied. noheader = ON # Prefix to mark included message text. Use "_" for a space. prefix = >_ # Attribution string for replies. "%F" is the author of original message. attribution = %s writes: # List of delivery precedences allowed, or empty to allow anything. # Precedence may be followed by optional ":priority" setting. precedences = special\-delivery:urgent air\-mail:urgent first\-class bulk junk # When showing To: addresses, just display the recipient name? # If OFF, show entire recipient address. names = OFF #----------------------------------------------------------------------- # # Section 6: Signature Options # # Local ".signature" file to append to appropriate messages. localsignature = localsig # Remote ".signature" file to append to appropriate messages. remotesignature = remotesig # Place dashes line above signatures? (Usenet compatibility and convention) sigdashes = ON #----------------------------------------------------------------------- # # Section 7: Program Termination/Folder Cleanup Options # # Should the "Delete messages?" question be asked when you exit, resync, # or change folders? If OFF, then the "alwaysdelete" action is taken # without asking. askdelete = OFF # Should the "Keep unread messages in incoming mailbox?" question be # asked when you exit, resync, or change folders? If OFF, then the # "alwayskeep" action is taken without asking. askkeep = OFF # Should the "Move read messages to received folder?" question be asked # when you exit, resync, or change folders? If OFF, then the "alwaysstore" # action is taken without asking. askstore = OFF # Should the default for the "Delete messages?" question be "yes"? alwaysdelete = ON # Should the default for the "Keep unread messages in incoming mailbox?" # question be "yes"? alwayskeep = ON # Should the default for the "Move read messages to received folder?" # question be "yes"? alwaysstore = OFF # Should we keep folders from which all messages are deleted? # If OFF then the empty folder files are deleted. keepempty = OFF #----------------------------------------------------------------------- # # Section 8: Folder Handling Options # # Where to save my mail to. maildir = /home/wfp5p/.Mail # Save a copy of all outgoing messages I send? copy = ON # Name of folder in which copies of outgoing messages are saved. sentmail = /home/wfp5p/.Mail/sentmail # Name of folder in which received messages are saved. receivedmail = /home/wfp5p/.Mail/oldmail # Save messages, incoming and outbound, by login name of sender/recipient? savename = ON # Save outbound messages by login name of sender/recipient even if the # associated folder doesn't already exist? forcename = OFF # List of folders which are incoming folders. Incoming folders are # handled like your spool mailbox. Folders in this list will be # opened with "magic mode" incomingfolders= "=pepband" "=elmbox" "=procmail-list" "=wuftpd" "=amdlist" "=bugtraq-list" "=zsh-list" "*end-of-incoming-folders*" #----------------------------------------------------------------------- # # Section 9: MIME and Character Set Options # # Name of character set which the display supports. displaycharset = iso-8859-1 # List of character sets, which are (more or less) a superset of US-ASCII. # When "displaycharset" is one of these, we can avoid spawning "metamail" # to handle a US-ASCII message. compatcharsets = ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-7 ISO-8859-8 ISO-8859-9 # The character set used for messages you write that contain 8-bit # national characters. (This becomes the "charset" parameter in the # "Content-Type" header of your outbound message.) If the message # contains solely 7-bit charcters, then this setting is ignored and # US-ASCII is selected. A common choice here is "ISO-8859-1". charset = iso-8859-1 # # end of Elm configuration settings # #----------------------------------------------------------------------- .fi .br .ne 5 .sp 2 .hn 1 Command Line Options There are a number of command line options to the Elm program, with only one that needs to be remembered: \*Q\-?\*Uor \*Q\-h\*U for help. The options are: .lp \h'24p'\-a 66p This allows you to have the \*Q\->\*U arrow pointer rather than the inverse bar. This can also be set in the \f2.elm/elmrc\f1 file with the boolean variable \f3arrow\f1. .lp \h'24p'\-c 66p Check only. This is useful for expanding aliases without sending any mail. The invocation is similar to invoking Elm in send-only mode: .sp .ft CW .zf .ti 1.5i elm \-c\f2 list-of-aliases\f1 .lp "\h'24p'\-d \f2n\f1" 66p Set debug level to \f2n\f1. Useful for debugging the Elm program, this option will create a file in your home directory called \f2ELM:debug.info\f1 containing a running log of what is going on with the program. Level \f2n\f1 can be 1 through 11, where the higher numbers generate more output. This option might be disabled by the the person who configured Elm for your system. .lp "\h'24p'\-f \f2folder\f1" 66p Read the specified folder rather than the default incoming mailbox. Note that you can use the same metacharacters (e.g. \*q=\*u) as when you \f2change folders\f1 from within the program. You can also use the same abbreviatory symbols (\*q!\*u, \*q>\*u and \*q<\*u), but remember to \*Qsingle quote\*U them in case they have special meaning in the shell you use. .lp "\h'24p'\-h or \-?" 66p Help message. Gives a short list of all these options and exits. .lp "\h'24p'\-i \f2file\f1" 66p Include a prepared file in the edit buffer before sending. This facilitates using Elm with other programs that interface with mail (like news readers, for example). There is an example of how to set up the \f2rn\f1 news reading program to use Elm in \f2The Elm Users Guide\f1. The file specified is copied into the temporary file just before the signature file. .lp \h'24p'\-k 66p Keypad enable. This option lets the Elm program know that you're on an HP terminal, and it can then interpret the , and /- keys accordingly. If you are not on an HP terminal, it is recommended that you do NOT use this option. See also the \f3keypad\f1 variable, described under \f3Boolean Variables\f1 in section 2. .lp \h'24p'\-K 66p Keypad + softkeys enable. The Elm mailer can use the HP softkeys as an alternative form of input. If you specify this option be sure that you're on an HP terminal that can accept the standard 2622 terminal escape sequences! See also the \f3softkeys\f1 variable, described under \f3Boolean Variables\f1 in section 2. .lp \h'24p'\-M 66p Lock all folders instead of just the main spool folder. This will also force elm to disply the status for folders other then the spool folder. .lp \h'24p'\-m 66p Inhibit display of the 3-line menu when using the mailer. This, of course, gives you three more message headers per page instead. See also the \f3menu\f1 variable, described under \f3Boolean Variables\f1 in section 2. .lp "\h'24p'\-s \f2subject\f1" 66p In send-only and batch mode, this is how to indicate the subject of the resulting message. Please see the section on \f3Non-Interactive Uses of Elm\f1 in \f2The Elm Users Guide\f1 for more information. .lp \h'24p'\-t 66p Disable use of the \f2termcap/terminfo\f1 \f3ti/te\f1 capabilities. Many terminal emulators require it (not the least of which is the OpenLook \f2cmdtool\f1). Some terminal emulators clear the screen on \f3te\f1 (some \f2xterm\f1s). See also the \f3usetite\f1 variable, described under \f3Boolean Variables\f1 in section 2. .lp \h'24p'\-z 66p This causes Elm not to start if you don't have any mail, but instead to display the message \*QYou have no mail.\*U This emulates the behavior of programs like \f2Berkeley Mail\f1. .in 0 All the above options default to reasonable values, so there is usually no need to use them. Furthermore, the most used options are available through the \f2.elm/elmrc\f1 file, described in section 2. .br .ne 5 .sp .hn 1 Multi-Media Capabilities of Elm Elm optionally provides you with some Multi-Media features, which are compliant to the MIME (Multipurpose Internet Mail Extension) standard. If the support is compiled into Elm, on the receiving side Elm accesses Metamail from Nathaniel Borenstein of Bellcore. If you receive a MIME compliant message, Elm calls Metamail automatically to display the message. Metamail asks you if you want to display each part of the message and uses the display programs available at your site. This is controlled through the \f2mailcap\f1 file. On the sending side, there is a simple mechanism integrated in Elm to compose MIME compliant messages. This is the attachments menu that can be found in the main index screen. Elm still supports the old method where you have one or more key lines of the form .ft CW .zf .ti .5i [\&include \f2file contenttype/subtype encoding\f1] .ft 1 in the message body, at each of these key lines, a file is included, and becomes a part of the message. The text lines before, between and after the \f2include\f1 lines go into extra message parts of type \f2text\f1. As an example, say you want to include the file \f2foo.gif\f1 into your message, which is a GIF image, and you want to use \f2base64\f1 encoding, use the following line: .ft CW .zf .ti .5i [\&include foo.gif image/gif base64] .ft 1 Or you want to include a text file which contains plain ASCII: .ft CW .zf .ti .5i [\&include foo.txt text/plain] .ft 1 The \f2encoding\f1 parameter is optional and the default is \f27bit\f1. Refer to RFC1341 for valid \f2contenttype/subtype\f1 and \f2encoding\f1 parameter values. .br .ne 5 .sp .hn 1 Special Outgoing Mail Processing There are a few extra features that Elm offers on outgoing mail that are worthy of mention. The first, and probably the most exciting feature,\s-2\u3\d\s0 is the .fn 3. Unfortunately, at many non-US sites, it's quite probable that you won't be able to use this feature since you won't have the \f2crypt()\f1 library available due to licensing restrictions. .ef ability to send \f2encrypted\f1 mail! To do this is extremely simple: you need merely to have two key lines .ft CW .zf .ti .5i [\&encode] .ft 1 .br and .ft CW .zf .ti .5i [\&clear] .ft 1 in the message body. .ne 15 Consider the following outgoing message: .sp .nf .ps 9 .in .5i .ft CW .zf Joe, Remember that talk we had about Amy? Well, I talked to my manager about it and he said... uhh...better encrypt this...the usual \`key\'... [\&encode] He said that Amy was having family problems and that it had been affecting her work. Given this, I went and talked to her, and told her I was sorry for getting angry. She said that she understood. We\'re friends again!! [\&clear] Exciting stuff, eh? \h'3i'Mike .ps 10 .ft 1 .in 0 .fi .sp While this is obviously quite readable while being typed into the editor, as soon as the message is confirmed as wanting to be sent, the Elm mailer prompts with: .sp .nf .ft CW .zf .ps 9 .ti .5i Enter encryption key: @ .ps 10 .ft 1 .fi .sp and accepts a key (a series of 8 or less characters) without echoing them to the screen. After entry, it will ask for the same key again to confirm it, then *\f2poof\f1* it will encrypt and send the mail. If you have the \f3copy\f1 option enabled, the program will save your copy of the message encrypted too. (This is to ensure the privacy and security of your mail archive, too.) If the mailer doesn't ask for the encryption key, it's because you don't have the \f2[\&encode]\f1 entered as the first 8 characters of the line. It MUST be so for this to work!! On the other end, a person receiving this mail (they must also be using Elm to receive it, since this mailer has a unique encryption program) will be reading the message and then suddenly be prompted: .sp .nf .ft CW .zf .ps 9 .ti .5i Enter decryption key: @ .ft 1 .ps 10 .fi .sp and will again be asked to re-enter it to confirm. The program will then on-the-fly decrypt the mail and display each line as it is decoded. The \f2[\&clear]\f1 line signifies that the block to encrypt is done. Note that it is not possible currently to \f3pipe\f1 or \f3print\f1 encrypted mail. .sp 2 The other feature on outgoing mail is the ability to specify what section of the message you want to have archived (assuming \f3copy\f1 is enabled) and what section you don't. This is most useful for sending out source file listings and so on. To indicate the end of the section that should be saved in the archive, you need merely to have the key line .sp .nf .ft CW .zf .ti .5i [\&nosave] .ft 1 or .ft CW .zf .ti .5i [\&no save] .ft 1 .fi .sp appear by itself on a line. This key line is removed from the outgoing mail, and indicates the last line of the message to be saved. Other than this, the saved mail is identical to the outgoing mail. .br .ne 5 .sp .hn 1 Customized header lines The mailer provides a facility for including customized header lines in the messages you send. If you have an \f2.elm/elmheaders\f1 file, the mailer will include its contents immediately after the regular headers of all outbound mail. The mailer supports use of the backquote convention in this file to run commands and substitute the commands' output for the backquoted text. Here's a typical \f2.elm/elmheaders\f1 file: .sp .ft CW .zf .nf Organization: Hewlett-Packard Laboratories Phone: (415)-555-1234 Operating-System: \`uname -srv\` .fi .ft 1 .sp These lines will be inserted after all other header lines in the message. .br .ne 5 .sp .hn 1 Commands .sp This section discusses each command in the Elm program in more detail than above, including the prompts the user can expect upon executing the command, the meaning of different options, etc. .lp \h'24p'? 66p Help. This command used once puts you in the \f2help\f1 mode, where any key you press results in a one-line description of the key. Pressing \*q?\*u again at this point produces a summary listing each command available. Pressing \*q.\*u (period) leaves the help mode and returns you to the command level. .lp \h'24p' 66p Display the current message. is useful for reading through a mail folder. When issued from the index screen, it displays the first screen of the current message. When issued while in the builtin pager, it pages through the message to the end. When issued at the end of a message (with either the builtin pager or an external pager), it displays the first screen of the next message not marked for deletion. .lp \h'24p' 66p Display the current message. behaves somewhat differently from . When issued while in the builtin pager, it scrolls the current message forward one line, and then when issued at the end of a message (with either the builtin pager or an external pager), it redisplays the first screen of the the \f2current\fP message. The latter is useful in case you have issued a non-pager command while in the builtin pager and want to restart the display of the current message. .lp \h'24p'! 66p Shell. This allows you to send a command to the shell without leaving the program. Note that it is possible that the person who installed Elm on your system disabled this feature. .lp \h'24p'| 66p Pipe. This command allows you to pipe the current message or the set of \f2tagged\f1 messages through other filters as you desire. The shell used for the entire command is either the one specified in your \f2.elm/elmrc\f1 file, or the default shell (see the \f3shell\f1 variable under \f3String Variables\f1 in section 2). .lp \h'24p'\/ 66p Pattern match. This command, at the command level, allows the user to search through all the \f2from\f1 and \f2subject\f1 lines of the current folder starting at the current message and continuing through the end. If the first character of the pattern is a \*q/\*u, then Elm tries to match the specified pattern against \f2any\f1 line in the folder. Again, this works from the current message through the end. Both searches are case insensitive. .lp "\h'24p'\- or " 66p Display the previous page of the message index. .lp "\h'24p'+ or " 66p Display the next page of the message index. .lp \h'24p' 66p Specify new current message. When you type in any digit, Elm prompts \*QSet current to : \f2n\f1\*U, where \f2n\f1 is the digit entered. Continue entering the full number and terminate with . Note that changing the current message to a message not on the current page of headers results in a new page being displayed. .lp \h'24p'< 66p Scan message for calendar entries. A rather novel feature of the Elm mailer is the ability to automatically incorporate calendar/agenda information from a mail message into the user's calendar file. This is done quite simply; any line that has the pattern .ti +.5i \-> \f2calendar entry\f1 is automatically added to the user's \f3calendar\f1 file when the \*q<\*u command is used (see the \f3calendar\f1 variable under \f3String Variables\f1 in section 2). .sp For example, let's say we had a message with the text: .ft CW .zf .ps 9 .ti +.5i Regardless of that meeting, here\'s the seminar stuff: .br .ti +.5i \-> 8/03 3:00pm: AI Seminar with Ira Goldstein of HP Labs .ft 1 .ps 10 then using the \*q<\*u command would add the line: .ft CW .zf .ps 9 .ti +.5i 8/03 3:00pm: AI Seminar with Ira Goldstein of HP Labs .ps 10 .ft 1 to the user's \f3calendar\f1 file. .lp \h'24p'& 66p Toggle Magic mode. See the command line option \f3\-M\f1 for more information. .lp \h'24p'a 66p Alias. The alias system is a way by which more complex mail addresses can be shortened for the mail user. For example: .sp .nf .ps 9 .ft CW .zf .ti +.5i joe, bleu = Joe Bleu = joe@hpfcla.SSO.HP.COM .ft 1 .ps 10 .fi .sp which allows mail to \*Qjoe\*U or \*Qbleu\*U with the system expanding the address properly. Obviously, this saves having to remember complex addresses. A more detailed discussion can be found in either the section entitled \f2The Alias System\f1 in this document or \f2The Elm Alias System Users Guide\f1. .lp \h'24p'b 66p Bounce mail. This \*Qremails\*U mail to someone else in such a way as to make the return address the original sender rather than you. The \f3forward\f1 command is similar, but it makes the return address \f2you\f1 rather than the original sender. .lp \h'24p'C 66p Copy to folder. This command copies the current message or set of tagged messages to a folder. If there is anything in the folder currently the message is appended to the end, otherwise the folder is created containing only the newly copied messages. The prompt for this command is \*QCopy to folder: \*U. A response of cancels the command and returns the user to the command prompt. The usual filename metacharacters are available, too. That is, this command expands filenames with \*q~\*u (tilde) to your home directory and \*q=\*u to your \f3maildir\f1 directory, if defined. This command also allows you to use \*q>\*u for your \f3receivedmail\f1 folder, \*q<\*u for your \f3sentmail\f1 folder, \*q.\*u for the last folder you saved or copied a message to and \*Q@alias\*U for the default folder for \*Qalias\*U. If you use a shell wildcard in the file or folder name, you are given a list of all files or folders which match the wildcard. Elm uses your shell to find the names, so whatever wildcards you are used to will work. Finally, you can also enter \*q?\*u at the prompt to get detailed help. .lp \h'24p'c 66p Change folder. Specifying this command allows the user to change the folder that is currently being read. This is intended for perusal and reply to previously archived messages. The prompt is \*QName of new folder: \*U and entering cancels the operation, while entering a filename causes the program to read that file as the new folder, if possible. This command expands filenames with \*q~\*u (tilde) to your home directory and \*q=\*u to your \f3maildir\f1 directory, if defined. This command also allows you to use \*q!\*u as an abbreviation for you incoming mailbox, \*q>\*u for your \f3receivedmail\f1 folder, \*q<\*u for your \f3sentmail\f1 folder, \*q.\*u for the last folder you saved or copied a message to and \*Q@alias\*U for the default folder for \*Qalias\*U. If you use a shell wildcard in the file or folder name, you are given a list of all files or folders which match the wildcard. Elm uses your shell to find the names, so whatever wildcards you are used to will work. Finally, you can also enter \*q?\*u at the prompt to get detailed help. .lp "\h'24p'd, u" 66p Delete and undelete. Neither of these two commands have any prompts and indicate their action by either adding a \*qD\*u to the current message index entry (indicating deletion pending) or removing the \*qD\*u (indicating that the message isn't set for deletion). .lp \h'24p'-D 66p This command allows you to easily mark for deletion all messages that have a specific pattern. After \f3-D\f1 is pressed, Elm prompts for the string to match in either the \f2from\f1 or \f2subject\f1 lines of the messages. .lp \h'24p'-U 66p This is the direct opposite command to the \f3-D\f1 command \(em all messages that match the specified pattern have any mark for deletion removed by this command. .lp \h'24p'e 66p Edit mailbox. This allows you to modify the current mail file at a single keystroke. This is mostly useful for editing messages before saving them. Modifying headers should be done with extreme caution, as they contain routing information and other vital stuff for full functionality. This command may be disabled by whoever configured your Elm installation. .lp \h'24p'f 66p Forward. Allows the user to forward the current message to another user. This copies the message into the edit buffer and allows the user to add their own message too. The prompt is \*QForward to:\*U and will expand an alias if entered. See also \f3bounce\f1, above. Elm will ask you if you want to edit the message before sending it. If you answer \f2yes\f1, Elm will prepend your prefix string to each line of the message, and let you edit the result. If you do not want the prefix string on each line, answer \f2no\f1; you will have another chance to edit the message when you get to the \*Qsend\*U menu. See the \f3prefix\f1 variable under \f3String Variables\f1 in section 2. .lp \h'24p'g 66p Group reply. Identical to \f3reply\f1 below, except that the response is mailed to \f2all recipients\f1 of the original message except yourself. See the \f3alternatives\f1 variable under \f3String Variables\f1 in section 2. .lp \h'24p'h 66p Display the current message with all headers intact. When you display a message with other commands, certain header lines are formatted and others discarded according to the \f3weedlist\fP variable, described under \f3String Variables\f1 in section 2. .lp \h'24p'i 66p Return to the index screen, when issued in the builtin pager or at the end of a message with either the builtin pager or an external pager. .lp "\h'24p'j or , k or " 66p These four keys work similarly to what they would do in \f2vi\f1 or any of the other (precious few) screen oriented programs. The \f3j\f1 and \f3\f1 keys move the current message pointer down to the next message skipping over any marked deleted (going to the next page if necessary) and the \f3k\f1 and \f3\f1 keys move the current message pointer back to the previous message skipping over any marked deleted (also changing pages if necessary). .lp "\h'24p'J, K" 66p These two keys work similarly to their lower case counterparts, except that they don't skip over deleted messages. .lp \h'24p'l 66p Limit. This feature allows you to specify a subset of the existing messages to be dealt with. For example, let's say we had a folder with four hundred messages in it, with only four or five different subjects. We could then limit what we're dealing with by using the \f3limit\f1 command. Pressing \f3l\f1 would result in the prompt: .sp .nf .ft CW .zf .ti +.5i Criteria: .ft 1 .fi .sp to which we could answer \*Qsubject \f2string\f1\*U, \*Qfrom \f2string\f1\*U or \*Qto \f2string\f1\*U. In our example, we could use \*Qsubject programming\*U as a criterion for selection. Once we've limited our selections, the screen is rewritten with just the selected messages and the top line changes to have a message like: .sp .nf .ft CW .zf .ps 9 .tl ''\0\0\0\0\0Folder is "=elm" with 92 shown out of 124 [Elm 2.4]'' .ps 10 .ft 1 .fi .sp We can further limit selections by using the \f3limit\f1 option repeatedly to enter further criteria. To clear all the criteria and get back to the \*Qregular\*U display, simply enter \*Qall\*U as the limiting criteria. It should be noted that the selection based on \*Qto\*U isn't fully implemented for this version, so it is recommended that users stay with \*Qsubject\*U and \*Qfrom\*U as the basis for their criteria. .lp \h'24p'M 66p Mlist toggle. This toggles the display between the standard elm display and a display that shows more information about messages that aren't directly to you. The main purpose of this display is make it easier to deal with messages from a mailing list. See section 8, \f3Enabling Elm \*Qmailing list\*U display support\f1 for more information. .lp \h'24p'm 66p Mail. Send mail to a specified user. The prompt associated with this command is \*QSend mail to: \*U. Entering an alias name results in the full address being rewritten in parenthesis immediately. This prompt is followed by \*QSubject: \*U which allows the user to title their note. The final prompt is \*QCopies to: \*U, which allows other people specified to receive \*Qcarbon copies\*U of the message, but see the \f3askcc\f1 variable under \f3Boolean Variables\f1 in section 2. Upon entering all three items the editor is invoked and the message can be composed. .lp \h'24p'n 66p Next message that is not marked for deletion. Useful for displaying successive messages in a folder. When issued from the index screen, it displays the current message, and when issued while in the builtin pager or at the end of a message (with either the builtin pager or an external pager), it displays the first screen of the next message not marked for deletion. .lp \h'24p'o 66p Options. This full-screen display allows you to alter the settings of a number of parameters, including the current sorting method, the method of printing files, the calendar file, the save file, and so on. It's self-documenting (where have you heard \f2that\f1 before?) so isn't explained in too much detail here. See the \f3configoptions\f1 variable under \f3String Variables\f1 in section 2. .lp \h'24p'p 66p Print. This allows you to print out the current message or the tagged messages to a previously defined printer. See the \f3print\f1 variable under \f3String Variables\f1 in section 2. .lp \h'24p'q 66p Quit. If you in the pager, you are returned to the index screen. If you are at the index screen, Elm quits altogether. However, if you have the \f3ask\fP variable set ON, Elm first prompts you for the disposition of the messages in the current folder. If any messages are marked for deletion, it asks if you want them deleted. If the current folder is your incoming mailbox, you are also asked if read messages should be stored in your \f3receivedmail\f1 folder, and if unread messages should be kept in the incoming mailbox. The default answers to these questions are set by the \f2.elm/elmrc\f1 variables \f3alwaysdelete\f1, \f3alwayskeep\f1, and \f3alwaysstore\f1 (see \f3Boolean Variables\f1 in section 2). However, if you elect to not store your read messages (i.e. keep them) it is presumed you want to keep your unread messages, too. .lp \h'24p'Q 66p Quick quit. This behaves similar to the \f3quit\f1 command except that you are never prompted for answers to the message disposition questions. Elm disposes of messages according to the values you have set for \f3alwaysdelete\f1, \f3alwaysstore\f1, and \f3alwayskeep\f1 in your \f2.elm/elmrc\f1 file (see \f3Boolean Variables\f1 in section 2). .lp \h'24p'r 66p Reply. Reply to the sender of the current message. If the \f3askreplycopy\f1 variable is set to ON in your \f2.elm/elmrc\f1 file, Elm prompts \*QCopy message into reply? (y/n)\*U, to which you can specify whether or not a copy of the source message is to be copied into the edit buffer. If copied in, all lines from the message are prepended with the \f3prefix\f1 character sequence specified in your \f2.elm/elmrc\f1 file (see \f3String Variables\f1 in section 2). .lp \h'24p'S 66p Status change. This full-screen display allows you to change arbitrarily the New/Old/Read and Replied-to status of the current message. Like Options, it's intended to be self-documenting and isn't covered in detail here. This command may have been disabled by whoever configured your Elm installation. .lp \h'24p's 66p Save to folder. This command is like the \f3copy\f1 command, except that the saved messages are marked for deletion and, if you are saving just the current message, the current message pointer is incremented afterwards (see the \f3resolve\f1 variable under \f3Boolean Variables\f1 in section 2). This command expands folder names with \*q~\*u (tilde) to your home directory and \*q=\*u to your \f3maildir\f1 directory, if defined. This command also allows you to use \*q>\*u for your \f3receivedmail\f1 folder, \*q<\*u for your \f3sentmail\f1 folder (see \f3String Variables\f1 in section 2), \*q.\*u (period) for the last folder you saved or copied a message to and \*Q@alias\*U for the default folder for \*Qalias\*U. .lp \h'24p't 66p Tag. .fn 4. Currently only \f3copy\f1, \f3pipe\f1, \f3print\f1, and \f3save\f1 support this. .ef Tag the current message for a later operation.\s-2\u4\d\s0 .lp \h'24p'T 66p Tag and move to next undeleted message. This command is like the `Tag' command but also increments the current message pointer to the next undeleted message. .lp \h'24p'-T 66p Tag all messages containing the specified pattern. Since \f2tagging\f1 messages can occur on screens other than the one being viewed, Elm first checks to see if any messages are currently \f2tagged\f1 and ask you if you'd like to remove those tags. After that, it will, similar to the \f3-D\f1 command, prompt for a pattern to match and then mark all messages that contain the (case insensitive) pattern in either the \f2from\f1 or \f2subject\f1 lines. .lp \h'24p'x 66p Exit. This leaves Elm and discards any changes to the mailbox. If changes are pending (such as messages marked for deletion) you are asked to confirm discarding the changes. If confirmed, no messages are deleted and the status of all messages is unchanged. That is, any messages that were new will remain new instead of being noted as old, and any messages that were read for the first time will be again noted as unread. .lp \h'24p'X 66p Exit immediately. This leaves Elm in the quickest possible manner without even prompting about discarding the changes to the mailbox. No messages are deleted and the status of all messages is unchanged. That is, any messages that were new will remain new instead of being noted as old, and any messages that were read for the first time will be again noted as unread. .in 0 .sp When you are about to send a message with the \f3forward\f1, \f3mail\f1, or \f3reply\f1 commands (see above), a small menu of the following options appears: .lp \h'24p'c 66p Specify the folder for saving a copy of the message. This allows you to override the \f3copy\f1, \f3forcename\f1, \f3savebyname\f1, and \f3savebyalias\f1 variables from your \f2.elm/elmrc\f1 file (see \f3Boolean Variables\f1 in section 2). It prompts you for the name of the folder where a copy of the outgoing message is to be saved. The default displayed is taken from those three \f2.elm/elmrc\f1 options and can be changed. This command also allows you to use \*q>\*u for your \f3receivedmail\f1 folder and \*q<\*u for your \f3sentmail\f1 folder (see \f3String Variables\f1 in section 2), and \*q=?\*u to mean \*Qconditionally save by name\*U and \*q=\*u to mean \*Qunconditionally save by name\*U. Since you could next enter the \f3edit headers\f1 command and change the recipients of your message, the name of the folder under the two \*Qsave by name\*U options is not established until you enter the \f3send\f1 command. If you use a shell wildcard in the file or folder name, you are given a list of all files or folders which match the wildcard. Elm uses your shell to find the names, so whatever wildcards you are used to will work. You can also enter \*q?\*u at the prompt to get help about saving. .lp \h'24p'e 66p Edit message (or form). Entering this command allows you to edit the text of your message or form. .lp \h'24p'f 66p Forget. This gets you out of sending a message you started. If you are in send-only mode, the message is saved to the file \f2Canceled.mail\f1 in your home directory. Otherwise it can be restored at the next \f3forward\f1, \f3mail\f1, or \f3reply\f1 command during the current session of Elm After issuing one of those commands you will be prompted with \*QRecall last kept message?\*U .lp \h'24p'h 66p Edit headers. This puts you into the \f2header editing mode\f1, whereby you can edit any of the various headers of your message. Like the options screen, it's self-documenting, so it isn't explained in too much detail here. .lp \h'24p'i 66p Run \f2ispell\f1 (or some other configured spelling correction program). The outgoing message is run through an interactive spelling correction program if one is available. The default spelling program is the GNU \f2ispell\f1 program unless changed by the person who installed Elm on your system. .lp \h'24p'm 66p Make form. This converts the message you have edited into a form. See the \f3forms\f1 variable under \f3Boolean Variables\f1 in section 2 and \f2The Elm Forms Mode Guide\f1 for more details. .lp \h'24p's 66p Send. This sends the message as is without any further ado. .in 0 .br .ne 5 .sp .hn 1 Enabling Elm \*Qmailing list\*U display support .sp Elm has an alternate display mode that gives additional information about message recipients. This makes it easy to differentiate between messages sent from a mailing list or other forms of mail aliasing, and messages that are to you personally. This mode is controlled by the \f3showmlists\f1 elmrc variable (default OFF), and may be toggled at run time with the \f3M\f1 command. (The \f2frm\f1 program also has mlist support; use the \*Q-l\*U option.) When the mlist mode is active, the screen looks like this: .ft CW .zf .ps 9 .ti +.1i 1 Jul 28 team@work / Jimmy Stewart (19) 5:00 today .br .ti +.1i 2 Jul 28 team@work / Jimmy Stewart (14) Today at 5:00 .br .ti +.1i 3 Jul 28 ============/ Marilyn Monroe (26) RF movie playing .br .ti +.1i 4 Jul 28 (b9@relay ) John Wayne (51) B9 Construction .br .ti +.1i 5 Jul 28 snapper-dev / Peter Graves (47) Check out this week's .br .ti +.1i 6 Jul 28 snapper-dev / Ann Margaret (42) Sneak Preview of THE M .br .ti +.1i 7 Jul 28 ------------/ William H. Goldbe (60) Re: Important Video Qu .ft 1 .ps 10 The first field, after the date, contains the additional information about the message's recipients, broken down into one of four possible categories: a) the message is addressed to you, and there are no other recipients; b) the message is addressed to you and also to other recipients; c) the message is cc'd to you (implies multiple recipients); or d) the message is not addressed specifically to you. It is the wide range of the last category that this mode is primarily designed to handle. Examples of this are mailing lists, in which the mailing list address is the recipient, and other mail aliases such as owner-list, postmaster, etc. that resolve to your email address. Elm uses the following notations to indicate which category your mail falls into: \*Q------------\*U indicates that either you, or you and the sender are the only recipients. In other words, this is private email between you and the sender. \*Q============\*U indicates that your username appears somewhere in the recipient list, in addition to other users. This is to remind you to use group reply if you want your comments to be sent to everyone. The same notation is used if the message is cc'd to you, as not all users will want to distinguish these cases. The \*Q(address)\*U notation indicates that the mail is not addressed directly to you and the recipient list doesn't match any addresses in the \*Qmlists\*U files (more on this below). Finally, any other text in this field indicates that the mail is not addressed directly to you and a match to one of the addressees was found in one of the \*Qmlists\*U files. The first pattern in mlists to match any recipient address is used. All of these notations can be customized. Mailing list names are read from $HOME/.elm/mlists and /usr/local/lib/mlists, in that order. Since the first pattern that matches is used, entries from the home mlists file will be used over entries from the global mlists file. The format of the mlists file is a list of RFC-822 compliant addresses, one per line. This means each line is of the format \f2"list name" \f1, \f2list-address (list name)\f1, or simply \f2list-address\f1. The list-address does not have to be the full address, just the portion that you want to match. Matches are case-independent, and only match whole words, with \*q@\*u, \*q!\*u, and \*q:\*u as delimiter characters. So \*Qos\*U will match \*Qhost!os\*U or \*Qos@host\*U, but not \*Qosf@host\*U. The \*Q------------\*U and \*Q============\*U representations can be changed in the mlist file as well. To change them, instead of a list address, specify a special token and name them just like any other list. The tokens are \*Q\f3[to-me]\f1\*U (mail just to me), \*Q\f3[to-many]\f1\*U (mail to me and others), and \*Q\f3[cc-me]\f1\*U (mail to me and others, but I'm on the cc list). examples: .ft CW .zf .ps 9 .ti +.1i # this is a comment .br .ti +.1i os (OS Group) .br .ti +.1i elm-dev .br .ti +.1i devnull (Hitech Sim) .br .ti +.1i "long name" .br .ti +.1i [to-me] (------) .br .ti +.1i [to-many] (======) .br .ti +.1i [cc-me] (==cc==) .br .ft 1 .ps 10 .in 0 .br .ne 5 .sp .hn 1 "Using Elm with \*Qeditor = none\*U" .sp The Elm program also supports a builtin editor for simple message composition that is very (very) similar to the simple line editor available from the \f2Berkeley Mail\f1 system. To access it, you need merely to specify \*Q\f3editor=none\f1\*U in your \f2.elm/elmrc\f1 file. With that, any messages to be composed that don't already have text in the buffer (e.g. no reply with the text included, etc.), will use this editor. .sp From the builtin editor, the following options are available for use. Each command here is prefixed with a \*q~\*u (tilde). You can specify a different \*Qescape\*U character in your \f2.elm/elmrc\f1 file, if you desire (see the \f3escape\f1 variable under \f3String Variables\f1 in section 2). .sp .lp \h'16p'~? .5i Print a brief help menu. .lp \h'16p'~b .5i Change the Blind-Carbon-Copy list. .lp \h'16p'~c .5i Change the Carbon-Copy list. .lp \h'16p'~e .5i Invoke the \f3easyeditor\f1 editor on the message, if possible (see the \f3easyeditor\f1 variable under \f3String Variables\f1 in section 2). .lp \h'16p'~f .5i Add the specified message or current message. .lp \h'16p'~h .5i Change all the available headers (To, Cc, Bcc, and Subject). .lp \h'16p'~m .5i Same as \f3~f\f1, but with the current \f3prefix\f1 (see the \f3prefix\f1 variable under \f3String Variables\f1 in section 2). .lp \h'16p'~o .5i Invoke a user specified editor on the message. .lp \h'16p'~p .5i Print out, on the screen, the message as typed in so far. .lp \h'16p'~r .5i Include (read in) the contents of the specified file. .lp \h'16p'~s .5i Change the Subject line. .lp \h'16p'~t .5i Change the To list. .lp \h'16p'~v .5i Invoke the \f2vi\f1 visual editor on the message. .lp \h'16p'~< .5i Execute the specified .ux command, entering the output of the command into the editor buffer upon completion. For example, \*Q~< who\*U includes the output of the \f2who\f1 command in your message. .lp \h'16p'~! .5i Execute a .ux command if one is given (as in \*Q~!ls\*U) or give the user a shell, either from the \f3shell\f1 variable setting in the \f2.elm/elmrc\f1 file or the default (see the \f3shell\f1 variable under \f3String Variables\f1 in section 2). .lp \h'16p'~~ .5i Add a line prefixed by a single \*q~\*u character. .in 0 .sp A useful note is that the \f3~f\f1 and \f3~m\f1 commands invoke the \f2readmsg\f1 command, so you can pass parameters along too. For example, if we wanted to include a message from Joe, without any headers, but with each line prefixed, we could use: .sp .nf .ft CW .zf .ti .5i \&~m \-n Joe .ft 1 .fi .sp to accomplish the task. To learn more about how they work, try 'em! .br .ne 5 .sp .hn 1 The Alias System .sp As mentioned previously, there exists in the Elm system a set of aliases that associate an arbitrary word (such as a persons name) to a complex address or group. The advantages are readily apparent; rather than remembering an address of the form: .sp .nf .ps 9 .ft CW .zf .ti .5i host1!host2! ... !hostN!user .ft 1 .ps 10 .fi .sp the user merely has to remember a single word. Two alias tables are available for a each user within Elm, namely the system alias file and the user's alias file. The system alias file is created and maintained (by the system administrator) by editing the file name defined for \f2SYSTEM_ALIASES\f1 in the \f2sysdefs.h\f1 file (see \f2The Elm Configuration Guide\f1) and as described in the documentation with the \f2newalias\f1 command, then running the \f2newalias\f1 program. An individual user can also have an alias file which works in conjunction with the system aliases. To do this, one merely needs to enter the alias menu system and create aliases with the \f3a\f1 (\f3alias current message\f1) or \f3n\f1 (\f3make new alias\f1) commands. Alternatively, the user can peruse the documentation for the \f2newalias\f1 command and create a file as indicated therein. After executing the program, the aliases are available for use from within Elm. .sp Please refer to \f2The Elm Alias Users Guide\f1 for complete details. .sp 2 Within Elm, however, the alias system acts as an entirely different program, with its own display, own commands, and own mini-menu. The aliases are presented in a list similar to the index screen with the following menu: .sp .sd .nf .ps 9 .ft CW .zf .ce 3 Alias commands: ?=help, =set current to n, /=search pattern a)lias current message, c)hange, d)elete, e)dit aliases.text, f)ully expand, l)imit display, m)ail, n)ew alias, r)eturn, t)ag, u)ndelete, or e(x)it .sp Alias: @ .sp .ps 10 .ft 1 .ed .fi The commands are: .lp \h'16p'? .5i Help. This command used once puts you in the \f2help\f1 mode, where any key you press will result in a one-line description of the key. Pressing \*q?\*u again at this point produces a summary listing each command available. Pressing \*q.\*u (period) leaves the help mode and returns you to the alias command prompt. .lp "\h'16p' or or v" .5i Display the current alias address. The alias address is displayed below the alias menu. This command allows you to verify the address for a person or the contents of a group alias. .lp \h'16p'$ .5i Resynchronize the alias text file (\f2$HOME/.elm/aliases.text\f1) and alias database by rebuilding the database from the text file by running \f2newalias\f1. Aliases marked for deletion are removed, tagged aliases are untagged, and new and changed aliases are recognized. The alias screen is updated to reflect these changes. .lp \h'16p'\/ .5i Pattern match. This command allows the user to search through all the \f2alias\f1 and \f2username\f1 entries in the alias list starting at the current alias and continuing through the end. If the first character of the pattern is a \*q/\*u, then Elm also includes the \f2comment\f1 and the fully expanded \f2address\f1 fields in the search. The search is case insensitive. This allows the user to find a specific alias in the situation where there are a large number of aliases. .lp \h'16p'a .5i Alias current message. This allows the user to create an alias that has the return address of the current message as the address field of the alias. It prompts for a unique alias name. If the alias name is not unique, you will be asked if you wish to replace the existing alias. For further information, please see \f2The Elm Alias System Users Guide\f1. .lp \h'16p'c .5i Change current alias. This will prompt for changes to the current names and address. If other aliases are tagged you will be asked if you want to create a group alias from the tagged aliases. The original alias is replaced with the new information in your individual alias file (\f2$HOME/.elm/aliases.text\f1) and then added to the database (at the next alias resync). Aliases that have been changed are marked with an \*qN\*u (for new) until the database is updated. .lp "\h'16p'd, u" .5i Delete or undelete an alias. This allows the user to mark an alias for deletion in the same fashion as on the index screen. The deletions are not actually made until the user returns to the main menu with the \f3r\f1, \f3q\f1, or \f3i\f1 commands or resyncs the display with the \f3$\f1 command. Deletions on system aliases are not allowed. These commands (plus the \f3-D\f1 and \f3-U\f1 versions) behave identically to their index screen counterparts (see section 7, \f3Commands\f1). .lp \h'16p'e .5i Edit the \f2.elm/aliases.text\f1 file. The user alias file is edited using the editor defined in the \f3editor\f1 variable in your \f2\&.elm/elmrc\f1 file (see \f3String Variables\f1 in section 2). \f2newalias\f1 is run after the edit. .lp \h'16p'f .5i Display fully expanded alias. The currently selected alias is fully expanded and displayed to the user. This is most useful when working with group aliases. .lp \h'16p'l .5i Limit the display. You can limit the display by alias type (person/group or user/system) or by search pattern on name or alias. Otherwise, this works exactly like the limit command on the index screen. .lp \h'16p'm .5i Send mail to the current alias. The user is prompted to compose a new mail message to be sent to the person or group specified by the selected alias. If aliases are tagged the message is mailed to the person(s) and/or group(s) specified by the tagged aliases. Tags are cleared after mailing the message. .lp \h'16p'n .5i Make a new user alias. This prompts for a unique alias name and then for an address. If the alias name is not unique, you are asked if you wish to replace the existing alias. If aliases are tagged you are asked if you want to create a group alias from the tagged aliases. The information provided is added to your individual alias file (\f2$HOME/.elm/aliases.text\f1) and then added to the database at the next alias resync. .lp "\h'16p'r or q or i" .5i Return. Return to the index screen of the Elm program. Any pending deletions are processed and newalias is run to update the database. New additions are handled at this time as well. .lp "\h'16p'R or Q or I" .5i Quick return. This behaves like the \*qr\*u command except that you are never prompted for answers to alias disposition questions. Elm disposes of aliases according to the value set for the \f3alwaysdelete\f1 variable in your \f2.elm/elmrc\f1 file (see \f3Boolean Variables\f1 in section 2). .lp \h'16p't .5i Tag. Tag the current alias for a later operation.\s-2\u5\d\s0 .fn 5. Currently only \f3mail\f1, \f3change\f1, and \f2new alias\f1 support this. .ef This command (plus the \f3-T\f1 version) behaves identically to its index screen counterpart (see section 7, \f3Commands\f1). .lp \h'16p'x .5i Exit alias menu. Exits the alias menu without processing any deletions. Aliases marked for deletion are unmarked and \f2newalias\f1 is not run, even if alias additions have been made. .in 0 .sp Additionally, the movement keys (\*qj\*u, \*qk\*u, \*q+\*u, \*q\-\*u, etc.) work in the same fashion as on the index screen (see section 7, \f3Commands\f1). .br .ne 5 .sp .hn 1 Elm and Signals Elm can handle several standard .ux \f2signals\fR to do some special processing. Signals are interrupt messages sent from one program to another. No detailed messages are sent, but a properly configured program (such as Elm) can watch for and handle these signals. In particular, Elm watches for the following signals and takes these actions: .lp ALRM .5i This is the alarm clock signal or time warning. Elm uses this to wake itself up periodically and check for new mail. .lp HUP .5i This is the hangup notice. It means that the terminal/modem/whatever which you have been using with Elm has become detached from the system where Elm was running. When Elm gets this signal, it aborts all the pending operations and exits, leaving your mailbox unchanged. .lp USR1 .5i This is the first user-defined signal. When Elm gets this signal, it receives any pending mail, performs all the pending operations (deletes), and exits leaving all unread mail marked as new. This is the same as giving both the \f3$\f1 and \f3X\f1 commands. .lp USR2 .5i This is the second user-defined signal. When Elm gets this signal, it receives any pending mail, performs all the pending operations (deletes), and exits, leaving all unread mail marked as old. This is the same as giving both the \f3$\f1 and \f3Q\f1 commands. .in 0 .sp You would only use these signals yourself under the most unusual circumstances. For example, suppose you were using \f3Elm\fR to read mail on \f2host_1\fR. You have many messages, most of which have been read and filed (and therefore deleted), or simply deleted. You have not yet resynchronized your mailbox (\f3$\f1 command). Now you go to lunch. On your return, you're stopped at the door and told to take care of an emergency. You go to another part of the building, and want to read your mail to see what the emergency is \(em but you can't, because Elm is still running at your desk. What you really want is one of the scenarios given in the description of \f2HUP\f1, \f2USR1\f1 or \f2USR2\f1. Use your local \f2ps\f1 command to find out what the \f2process number\f1 of your Elm session is. Then give the command .sp .nf .ft CW .zf .ti .5i kill \-\f2XXX process_number\f1 .fi .sp where \f2XXX\f1 is either \*QHUP\*U, \*QUSR1\*U or \*QUSR2\*U and \f2process_number\f1 is the process number for your remote Elm session. Your remote session will terminate with the actions noted above. .br .ne 5 .sp .hn 1 Expert Mail Users and Debugging the Mailer There are some additional facilities available in the Elm mailer for those people who are knowledgeable about mail protocols, or trying to debug/track down a problem. The \f3h\f1 (\f3display with headers\f1) command at the command prompt displays the current message ignoring the current setting of the \f3weed\f1 variable (see \f3Boolean Variables\f1 in section 2). This is most useful for answering questions of the form \*QI wonder what this guy put in his header?\*U and such. This command does not show up on the mini-menu because it is somewhat esoteric, but it does appear on the help screen. The \f3@\f1 command at the command prompt outputs a screen of debugging information, including the number of lines and offsets of each of the messages in the current mailbox. The \f3#\f1 command at the command prompt displays the entire stored \*Qrecord structure\*U for the current message. The \f3%\f1 command displays the full computed return address of the current message. Starting up Elm with the \f3\-d\f1 (debug) option (see section 3, \f3Command Line Options\f1) creates a file called \f2ELM:debug.info\f1 in your home directory which contains a wealth of useful information (to me, at least!) to aid in tracking down what errors are occurring and why. If there are any problems with Elm, please try to recreate the error with the debug option enabled and set to the highest level (11) before sending defect reports my way. One final note: all error names reported by the program are documented in the \f2AT&T System V Interface Definition Reference Manual\f1 in \f3errno\f1(2).