home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Spezial / SPEZIAL2_97.zip / SPEZIAL2_97.iso / ANWEND / ONLINE / ELM23-2 / ELM23-2.ZIP / doc / Ref.guide (.txt) < prev    next >
Amigaguide Document  |  1991-01-18  |  62KB  |  1,359 lines

  1. .\" @(#)$Id: Ref.guide,v 4.1.1.1 90/06/09 22:49:11 syd Exp $
  2. .\"  Reference guide to the Elm mail system.
  3. .\"  format with
  4. .\"      troff tmac.n Ref.guide > Ref.format
  5. .\"  Elm is now in the public trust. Bug reports, comments, suggestions, flames
  6. .\"  etc. should go to:
  7. .\"    Syd Weinstein        elm@DSI.COM (dsinc!elm)
  8. .\"  (C) Copyright 1986, 1987 Dave Taylor
  9. .\"  (C) Copyright 1988, 1989, 1990 Usenet Community Trust
  10. .\"  $Log:    Ref.guide,v $
  11. .\" Revision 4.1.1.1  90/06/09  22:49:11  syd
  12. .\" Droped obsolete control Q command from list
  13. .\" From: Joe Wasik
  14. .\" Revision 4.1  90/04/28  22:41:08  syd
  15. .\" checkin of Elm 2.3 as of Release PL0
  16. .po 1i
  17. .ds h0
  18. .ds h1
  19. .ds h2
  20. .ds f0
  21. .ds f1
  22. .ds f2
  23. .nr Hy 1
  24. .nr Pt 1
  25. .nr Pi 0
  26. .lg 0
  27. .sv |3.0i
  28. .ce 99
  29. .ps 20
  30. .ss 18
  31. .vs 12
  32. \f3The Elm Reference Guide\f1
  33. .sp 3
  34. .ps 12
  35. .ss 14
  36. .vs 14
  37. \f2A comprehensive list of all commands,
  38. options and such to the \f3Elm\fP mail system\f1
  39. .sp 2
  40. Dave Taylor
  41. Hewlett-Packard Laboratories
  42. 1501 Page Mill Road
  43. Palo Alto CA
  44. 94304
  45. .sp 3
  46. email: taylor@hplabs.HP.COM or hplabs!taylor
  47. .sp 3
  48. >>> Elm is now in the public trust. Bug reports, comments, etc. to: <<<
  49. Syd Weinstein
  50. Datacomp Systems, Inc.
  51. 3837 Byron Road
  52. Huntingdon Valley, PA 19006-2320
  53. email: elm\s-1@\s+1DSI.COM  or  dsinc\s-1!\s+1elm
  54. .sp 3
  55. .ps 18
  56. \f3\(co\f1\s12 Copyright 1986, 1987 by Dave Taylor
  57. .ps 18
  58. \f3\(co\f1\s12 Copyright 1988, 1989, 1990 by The USENET Community Trust
  59. .ce 0
  60. .ps 10
  61. .ss 12
  62. .vs 12
  63. .bp 1
  64. .sv 5v
  65. .ce 99
  66. .ps 14
  67. \f3The Elm Reference Guide\f1
  68. .ds h0 "Elm Reference Guide
  69. .ds h1
  70. .ds h2 "Version 2.3
  71. .ds f0 "May 1, 1990
  72. .ds f1 "Page %
  73. .ps 10
  74. (Version 2.3)
  75. .sp 2
  76. Dave Taylor
  77. Hewlett-Packard Laboratories
  78. 1501 Page Mill Road
  79. Palo Alto CA
  80. 94304
  81. email: taylor@hplabs.HP.COM or hplabs!taylor
  82. .sp 2
  83. >>> Elm is now in the public trust. Bug reports, comments, etc. to: <<<
  84. Syd Weinstein
  85. Datacomp Systems, Inc.
  86. 3837 Byron Road
  87. Huntingdon Valley, PA 19006-2320
  88. email: elm\s-1@\s+1DSI.COM  or  dsinc\s-1!\s+1elm
  89. .sp 2
  90. May 1, 1990
  91. .ce 0
  92. .sp 3
  93. .hn 1 Introduction
  94. There are many parts to a complex software system and \f3The Elm
  95. Mail System\f1
  96. is no different.  This document describes fully all the options
  97. available in the mailer, including the command line options,
  98. the commands (in considerably more detail than
  99. in \f2The Elm Users Guide\f1) and
  100. the \f2.elm/elmrc\f1 file.
  101. To be more explicit, this document covers:
  102. a discussion of
  103. the \f2.elm/elmrc\f1 file,
  104. command line options of \f2elm\f1,
  105. outgoing mail processing,
  106. responses of various commands,
  107. mail archive folders,
  108. the Alias system,
  109. system aliases etc,
  110. more on the \f3Elm\f1 utilities,
  111. and a section for expert mail users.
  112. Without any further ado, then, let's get this show on the road!!
  113. .hn 1 "The .elm/elmrc File"
  114. Elm, like lots of other software on the
  115. Unix\v'-.3'\s5TM\s10\v'.3' system, has the ability to automatically read
  116. in a configuration file at each invocation.  The file must be
  117. called \f2elmrc\f1 and reside in the \f2.elm\f1 directory located
  118. in your home directory.  It can have any of the entries below, in any order.
  119. If you are missing any entries, or if you don't have an \f2.elm/elmrc\f1
  120. file, the default values (listed below for each option) will be used.
  121. Note that those options below designated with * can be altered
  122. using elm via the o)ptions screen.
  123. Also note that when you save a new \f2.elm/elmrc\f1 file via the `>' command
  124. of the options
  125. screen, it will be (re)created including even those options that
  126. have default values.
  127. .ne 8
  128. .hu String Variables
  129. .lp alternatives 1.0i
  130. This is a list of other machine/username combinations
  131. that you receive mail from (forwarded).  This is used
  132. when the \f2group reply\f1 feature is invoked to ensure that
  133. you don't send yourself a copy of the outbound message.
  134. (The default is a list of no alternatives.)
  135. .lp calendar* 1.0i
  136. This is used in conjunction with the `<' \f2scan message for
  137. calendar entries\f1 command, as the file to append any found
  138. calendar entries to.  (The default is \f2calendar\f1 in your home directory.)
  139. .lp editor* 1.0i
  140. The editor to use when typing in new mail.  If you select
  141. ``none'' or ``builtin'' you'll get a Berkeley Mail style
  142. interface for all mail that doesn't already have text
  143. in the buffer (e.g. a reply, mail with a ``signature'', etc).
  144. (The default is to use the value of $EDITOR in your
  145. current environment, and if not set, an editor selected by
  146. the person who configured \f2elm\f1 for your system.)
  147. .lp escape 1.0i
  148. The character used with the ``builtin'' editor (see above)
  149. to escape from text entry to input a command.
  150. When a line begins with this character, the editor interprets it
  151. as a command rather than as text to add.
  152. (The default is ``~''.)
  153. .lp fullname* 1.0i
  154. This is the name the mailer will use in messages
  155. you send.  It is highly recommended that you use your
  156. full name and nothing strange or unusual, as that can
  157. appear extremely rude to people receiving your mail.
  158. (The default is to use the ``gcos'' field from the \f2/etc/passwd\f1 file
  159. on systems that use this field to store full names, and to use the contents
  160. of \f2.fullname\f1 in your home directory on other systems.)
  161. .lp maildir* 1.0i
  162. This is your folder directory.
  163. When you specify a folder name beginning with the `=' metacharacter\s-2\u1\d\s0,
  164. 1. Note that `%' and `+' are synonymous with `=' throughout \f2elm\f1
  165. it stands for this directory name.  That is,
  166. if you save a message to folder \f2=stuff\f1
  167. the `=' will be expanded to the current value of \f2maildir\f1.
  168. (The default is the directory \f2Mail\fP in your home directory.)
  169. .lp tmpdir* 1.0i
  170. Use this if you want to define your own directory for the temporary
  171. file Elm creates while running.  This is only necessary if using the
  172. system temporary directory could cause problems, such as when not all
  173. NFS clients mount the common temporary directory, or when the temporary
  174. directory is prone to being cleared periodically.  The default entry
  175. of the system temporary directory is normally ok.
  176. .lp pager 1.0i
  177. This is the program to be used to display messages.  You can
  178. specify ``builtin'' or the name of any standard pager.  If you
  179. use ``builtin+'', each screenfull of displayed message is
  180. ``paged'' from the top of your screen with a title line,
  181. while ``builtin'' simply ``scrolls up'' subsequent screenfulls once
  182. it has ``paged'' the first screenfull.
  183. (The default is to use the value of $PAGER in your
  184. current environment, and if not set, a pager selected by
  185. the person who configured \f2elm\f1 for your system, quite likely ``builtin+''.)
  186. .lp attribution 1.0i
  187. When you \f2forward\f1 a message or \f2reply\f1 to it, you can
  188. optionally attribute the quoted text to its original author.
  189. Defining the attribution string here allows you to indicate the
  190. form that the attribution should take.  The sequence `%s' in the
  191. attribution will be replaced by the name of the original author.
  192. Examples are:
  193. .ft CW
  194.     attribution = According to %s:
  195.     attribution = %s writes:
  196. .ft 1
  197. .lp prefix 1.0i
  198. When you \f2reply\f1 to a message or \f2forward\f1 a message to another person,
  199. you can optionally include the original message.  Defining the
  200. prefix value here allows you to indicate what the prefix of
  201. each included line should be.  (The default is ``>\ '' and is
  202. standard in the Unix community.)
  203. .lp print* 1.0i
  204. This is the command used for printing messages.  There are two
  205. possible formats for it, either a command that
  206. can have a filename affixed to (as a suffix) before being
  207. executed, or a string that
  208. contains the meta-sequence `%s' which will be replaced
  209. by the name of the file before being executed.  Examples of each are:
  210. .ft CW
  211.     print = print -formfeed
  212.     print = pr %s | lpr
  213. .ft 1
  214. (The default is set by the person who configured \f2elm\f1 for your system.)
  215. .lp receivedmail 1.0i
  216. This is the folder to which incoming mail is saved after you've read it.
  217. When you answer \f2no\f1 (`n') to the ``keep unread messages in
  218. your incoming mailbox?'' prompt or \f2yes\f1 (`y') to the ``store read
  219. messages in your "received" folder?'', this is where the messages go.
  220. (The default is "=received", that is,
  221. a folder called \f2received\f1 in your \f2maildir\f1 directory).
  222. .lp sentmail* 1.0i
  223. This is the folder to which a copy of outgoing mail is automatically
  224. saved.  This will only be done if the \f2copy\f1 flag
  225. is turned on (see below).  Also note that if the \f2savename\f1 feature
  226. (see below) is enabled then this folder may be ignored since the program
  227. may save to a folder that has the same name as the login
  228. of the person you're sending to.
  229. Whether or not a copy is saved, and to what folder, can be changed just
  230. prior to sending a message, see below.
  231. (The default is "=sent", that is,
  232. a folder called \f2sent\f1 in your \f2maildir\f1 directory).
  233. .lp shell 1.0i
  234. This defines the shell to use when doing ``!'' escapes and
  235. such.  (The default is to use the value of $SHELL in your
  236. current environment, and if not set, a shell selected by
  237. the person who configured \f2elm\f1 for your system.)
  238. .lp signature 1.0i
  239. This file, if defined, will be automatically appended to all
  240. outbound mail before the editor is invoked.  Furthermore,
  241. if you'd like a different ``.signature'' file for \f2local\f1
  242. mail and \f2remote\f1 mail (remote being via other hosts),
  243. you can alternatively define two variables, \f2localsignature\f1
  244. and \f2remotesignature\f1, to have the same functionality.
  245. (The default is "localsignature" and "remotesignature"
  246. in your home directory.)
  247. .lp sortby* 1.0i
  248. You can have your folder sorted by any of the following ways:
  249. .ta 1i
  250. from    This will sort according to whom each message is \f2from\f1.
  251. lines    This will sort \f2shortest\f1 to \f2longest\f1 by message.
  252. mailbox    This will leave the messages in the order found in the folder.
  253. received    This will sort \f2least recently received\f1 to
  254. \f2most recently received\f1.
  255. sent    This will sort \f2least recently sent\f1 to \f2most recently sent\f1.
  256. status    This will sort by priority, action, new, tagged, then deleted.
  257. subject    This will sort according to the \f2subject\f1 of each message.
  258. Each of these fields can also optionally be prepended with the
  259. sequence ``reverse-'' to reverse the order of the sort.  This doesn't
  260. imply anything about the order of the message in the folder
  261. itself and affects only their order on the index screen.  (The
  262. default is \f2mailbox\f1 order.)
  263. .lp weedout 1.0i
  264. When specifying this option, you can list headers that
  265. you \f2don't\f1 want to see when you are displaying a message.
  266. This list can continue for as many lines as desired, as
  267. long as the continued lines all have leading indentation.
  268. (The default is ``Received:'' and others.)
  269. .ne 8
  270. .hu Numeric Variables
  271. .lp bounceback 1.0i
  272. This is a hop count threshold value and allows you to
  273. set up the mailer so that when you send mail more than
  274. \f2n\f1 machines away, it'll automatically include a
  275. ``Cc:'' to you through the remote machine.  In practice
  276. this should be very rarely used.  (Note: this refuses to
  277. bounce mail off an Internet address.  The default is to
  278. have it set to zero, which disables the function)
  279. .lp timeout 1.0i
  280. On more advanced systems, it's nice to start up the
  281. mailer in a window and let it sit in background
  282. unless new mail arrives (see \f2wnewmail\f1 for
  283. another window based program) at which point
  284. it can be brought up to the forefront of the system
  285. and read.  In this case, it would be quite convenient
  286. to have the mailer internally resynchronize every
  287. so often.  This option specifies the number of seconds that this occurs.
  288. This is also useful for normal terminals, for example you can
  289. leave \f2elm\f1 running at night (I usually do) and when you
  290. come in in the morning it'll be all ready to read your mail!
  291. (The default is a 300 second (5 minute) timeout period).
  292. .lp userlevel* 1.0i
  293. This is what the program uses to determine the relative level of
  294. sophistication of the user \(em the values are 0 for a new user (the
  295. default), 1 for someone familiar with \f2elm\f1
  296. user, and 2 for experts.  Some advanced features are hidden from novice
  297. users, while experts get less verbose prompt messages.
  298. .ne 8
  299. .hu Boolean Variables
  300. .lp alwaysdelete 1.0i
  301. When set, this changes the default answer
  302. of the prompt ``Delete messages?'' to the indicated value.  (The default is
  303. to have the answer be \f2No\f1 (i.e. alwaysdelete = OFF).)
  304. .lp alwaysstore 1.0i
  305. This sets the default
  306. answer on the ``store read mail in "received" folder'' prompt
  307. to the value indicated.  (The default is to have the default
  308. answer be \f2No\f1 (i.e., alwaysstore = OFF).)
  309. .lp alwayskeep 1.0i
  310. This sets the default answer
  311. on the ``keep unread mail in incoming mailbox''
  312. However, if you answered \f2No\fP to the ``store read
  313. mail in "received" folder''
  314. it is presumed that you'd also want to keep your unread mail in the
  315. incoming mailbox, too, and the value of alwayskeep is ignored.
  316. (The default is to have the
  317. default answer be \f2Yes\f1 (i.e., alwayskeep = ON).)
  318. .lp arrow* 1.0i
  319. Sometimes you are forced to use a slow, or ``dumb'' terminal.  In this
  320. case, you can force the current message pointer to be the ``->''
  321. sequence rather than the inverse bar.  (Note that this is
  322. overridden by the similar `-a' command line option,
  323. see below.)  (The default is OFF.)
  324. .lp ask 1.0i
  325. This allows you to tell the \f2elm\f1 system that
  326. you'd rather not be asked ``Delete Mail?'' and such each time you
  327. quit, resynchronize a folder or change folders,
  328. and instead it should just use the values of
  329. ``alwaysdelete'', ``alwaysstore'', and ``awayskeep'' without prompting.
  330. (Note that when you quit \f2elm\fP, if you use `Q' instead of `q', you will
  331. never be questioned, regardless of how you have \f2ask\f1 set.)
  332. (The default is ON, i.e. to ask the questions.)
  333. .lp askcc 1.0i
  334. If turned off, this will allow you to send mail without being
  335. presented the ``Copies to:'' prompt for each message. This
  336. still allows you to explicitly include addresses in the ``cc''
  337. list via either ``~c'' in the builtin editor, or via using the
  338. header editor.  (The default is ON, i.e. to ask about copies.)
  339. .lp autocopy 1.0i
  340. If turned on, this will automatically copy
  341. the text of each message being replied to into the edit
  342. buffer.  Otherwise you will be prompted as to whether you want
  343. the message included in yours. (See the \f2prefix\f1
  344. option above.)  (The default is OFF.)
  345. .lp copy 1.0i
  346. This, in combination with the \f2sentmail\f1 folder, will
  347. allow you to have silent copies of all outgoing mail
  348. made on the outbound step.
  349. Whether a copy is saved and to which folder can be set prior to sending
  350. a message, see below.
  351. (The default is OFF.)
  352. .lp forcename 1.0i
  353. This, in combination with the \f2savename\f1 option, governs
  354. how a copy of an outgoing message will be saved.  (See \f2savename\f1 below
  355. for details.)  (The default is OFF.)
  356. .lp keep 1.0i
  357. The mail system has a habit of deleting folders when you've
  358. removed everything from them.  With this option turned on, it will
  359. instead preserve them as zero-byte files.
  360. This option does not apply to your incoming mailbox.
  361. (The default is OFF.)
  362. .lp keypad 1.0i
  363. If on, this tells \f2elm\f1 that you have an HP terminal and enables
  364. the <NEXT>, <PREV>, <HOME> and <SHIFT-HOME> keys.  (The default is OFF.)
  365. .lp menu* 1.0i
  366. If turned off, this will inhibit the Menu display on all of the
  367. screen displays within the \f2elm\f1 program.  (Note that this is
  368. overridden by the similar `-m' command line option,
  369. see below.)  (The default is ON.)
  370. .lp names* 1.0i
  371. If turned off, the primary recipients' address is displayed on your
  372. screen with their full names when you send a message.  Otherwise,
  373. only the full names are given.  (The default is ON.)
  374. .lp movepage 1.0i
  375. If this is enabled then commands that move through the
  376. folder by pages (the `+', `-', <right-arrow>, and <left-arrow> keys)
  377. will also move the current message pointer to the
  378. top of that page of messages.  If this is turned off
  379. then moving through the pages doesn't alter the
  380. current message pointer location.
  381. (The default is OFF.)
  382. .lp noheader 1.0i
  383. This boolean flag tells the mailer not to include the
  384. headers of messages when copying a message into a file
  385. buffer for replying to or forwarding.
  386. (The default is ON.)
  387. .lp promptafter 1.0i
  388. If this flag is ON and you use an external pager,
  389. when the pager exits, you will be prompted for a command rather
  390. than returned directly to the index screen.
  391. If the external pager you are using exits when it reaches end of file
  392. (i.e. end of the message), you should have this flag ON,
  393. otherwise the last screen of the displayed message will not be held
  394. but instead be immediately replaced by the index screen.
  395. If the external pager you are using does not exit until you command it to exit,
  396. you have a choice.
  397. If you usually want to see the index screen before issuing a command,
  398. having the flag OFF will cut down out the extra keystroke needed to return
  399. to the index screen.
  400. If you usually don't need to see the index screen to before issuing the
  401. next command,
  402. having the flag ON will allow you to proceed with your next command without
  403. having to wait for the redrawing of the index screen.
  404. (The default is ON.)
  405. .lp pointnew 1.0i
  406. If this is turned on, the mailer will be automatically
  407. pointing to the first new message in your folder when started, instead
  408. of at message #1.  This will only be effective for the incoming mailbox since
  409. other folders are not expected to have `new' mail.  (The default is ON.)
  410. .lp resolve 1.0i
  411. This is a boolean flag that defines the behaviour of the
  412. program for such actions as deletion, saving a message
  413. and so on.   Specifically, with this option enabled, as
  414. soon as mail is `dealt with' the program moves you to the
  415. next message in the folder, with deletion, undeletion,
  416. saving a message and forwarding a message all being treated as
  417. dealing with email in this manner.
  418. (The default is ON.)
  419. .lp savename 1.0i
  420. One of the problems with electronic mail systems is that one
  421. tends to get very large, one-dimensional (flat) files that
  422. contain lots of completely unrelated mail.  If this option
  423. is turned on, \f2elm\f1 will use a more intelligent
  424. algorithm \(em on incoming mail, when you \f2save\f1 or \f2copy\f1 it,
  425. the default mailbox to save to (changeable by pressing anything other than
  426. <return> of course) is a folder that is the \f2login name\f1 of the
  427. person who sent you the message.  Similarly, when sending mail out,
  428. instead of just blindly saving it to the \f2sentmail\f1 folder, \f2elm\f1
  429. will save it to a folder that is the login name of the
  430. person who is to receive the mail\s-2\u2\d\s0.
  431. 2. When sending to a group, it's saved to the first person in the
  432. list only.
  433. If \f2forcename\f1 is off (see above), the copy will be saved to
  434. that folder only if the folder already exists.  In practice,
  435. this means that important people that you communicate
  436. with (those that you tend to save mail from) have folders that are
  437. actually \f2a recorded log of the discussion in both directions\f1
  438. and those others (random mailings) are all stuffed in the \f2sentmail\f1
  439. folder for easy perusal and removal.
  440. Otherwise, if you always want to save copies of outgoing messages
  441. in separate folders by recipient login name,
  442. you'll want to set \f2forcename\f1 to on.  (The
  443. default for \f2savename\f1 is ON.)
  444. .lp sigdashes 1.0i
  445. If on, this tells \f2elm\f1 that you wish to follow the convention of prefixing
  446. your signature with newline dash dash blank newline.  This will be placed in
  447. your message before your signature file.  If off, the signature file is placed at
  448. the end of the message without any prefix.
  449. .lp softkeys 1.0i
  450. If on, this tells \f2elm\f1 that you have an HP terminal with the
  451. HP 2622 function key protocol and that you'd like to have them available
  452. while in the program.  (The default is OFF.)
  453. .lp titles 1.0i
  454. This flag allows you to have the first line of a message
  455. titled with:
  456. .ft CW
  457. .ps 9
  458. .tl '           Message \f2N/M\fP from \f2username\fP''\f2date\fP at \f2time\f1      '
  459. .ps 10
  460. .ft 1
  461. where all the information has been previously extracted
  462. from the message.
  463. This is especially useful if you weed out all the headers of each
  464. message with a large `weedout' list...
  465. (The default is ON.)
  466. .lp warnings 1.0i
  467. The mailer likes to warn you when you send mail to a machine that cannot
  468. be directly accessed.  In some situations, however, the system is set up so
  469. that mail is automatically forwarded to another machine that might then
  470. have better connections.  Setting this flag to OFF will allow you to effectively
  471. shut off all the warning messages.  Use of this flag requires support of the
  472. uuname command on your system.  Without this command, the flag will be cleared
  473. to OFF automatically. (The default is ON.)
  474. .lp weed 1.0i
  475. This is a boolean flag that, in combination with the
  476. ``weedout'' list, allows you to custom define the set of
  477. headers you would like to not have displayed while reading
  478. messages.
  479. (The default is ON.)
  480. .in 0
  481. One more thing: the format for each of the lines is:
  482. .ft CW
  483. .ti .5i
  484. variable = value\f1
  485. and for boolean variables, \f2value\f1 can be `ON' or `OFF' only.
  486. For a better idea of how this all works, here's
  487. my \f2.elm/elmrc\f1 file.
  488. While looking through it, notice that you can have lots of comments
  489. and blank lines for readability and that you can also use `shell
  490. variables' and the `~' metacharacter for your home directory,
  491. and they are expanded accordingly when read in by the mailer.
  492. (Note that this was automatically saved by the \f2elm\f1 program
  493. on the fly from the o)ptions screen)
  494. .ft CW
  495.   # .elm/elmrc - options file for the ELM mail system
  496.   # Saved automatically by ELM 2.2 for Dave Taylor
  497.   # For yes/no settings with ?, ON means yes, OFF means no
  498.   # where to save calendar entries
  499.   calendar = ~/.Agenda
  500.   # what editor to use ("none" means simulate Berkeley Mail)
  501.   editor = none
  502.   # the character to use in the builtin editor for entering commands
  503.   escape = ~
  504.   # the full user name for outbound mail
  505.   fullname = Dave Taylor
  506.   # where to save received messages to, default file is "=received"
  507.   receivedmail = $HOME/Mail/received
  508.   # where to save my mail to, default directory is "Mail"
  509.   maildir = /users/taylor/Mail
  510.   # program to use for displaying messages ('builtin' is recommended)
  511.   pager = builtin
  512.   # prefix sequence for indenting included message text in outgoing messages...
  513.   prefix = >_
  514.   # how to print a message ('%s' is the filename)
  515.   print = lpr -Plw2 %s
  516.   # where to save copies of outgoing mail to, default file is "=sent"
  517.   sentmail = /users/taylor/Mail/mail.sent
  518.   # the shell to use for shell escapes
  519.   shell = /bin/csh
  520.   # local ".signature" file to append to appropriate messages...
  521.   localsignature = localsig
  522.   # remote ".signature" file to append to appropriate messages...
  523.   remotesignature =  remotesig
  524.   # do we want dashes above signatures? (News 2.11 compatibility and convention)
  525.   sigdashes = ON
  526.   # how to sort folders, "Mailbox" by default
  527.   sortby = Reverse-Received
  528.   # should the default be to delete messages we've marked for deletion?
  529.   alwaysdelete = ON
  530.   # should the default be to store read messages to the "received" folder?
  531.   alwaysstore = ON
  532.   # should the default be to keep unread messages in the incoming mailbox?
  533.   alwayskeep = ON
  534.   # should we use the "->" rather than the inverse video bar?
  535.   arrow = OFF
  536.   # should the message disposition questions be displayed(ON) or
  537.   # auto-answered(OFF) with the default answers when we resync or change folders?
  538.   ask = ON
  539.   # would you like to be asked for Carbon-Copies information each msg?
  540.   askcc = ON
  541.   # automatically copy message being replied to into buffer?
  542.   autocopy = OFF
  543.   # threshold for bouncing copies of remote uucp messages...
  544.   # zero = disable function.
  545.   bounceback = 0
  546.   # save a copy of all outbound messages?
  547.   copy = ON
  548.   # do we want to be able to mail out AT&T Mail Forms?
  549.   forms = OFF
  550.   # should we keep folders from which all messages are deleted?
  551.   keepempty = OFF
  552.   # we're running on an HP terminal and want HOME, PREV, NEXT, etc...
  553.   keypad = OFF
  554.   # should we display the three-line 'mini' menu?
  555.   menu = ON
  556.   # when using the page commands (+ - <NEXT> <PREV>) change the current
  557.   # message pointer...?
  558.   movepage = ON
  559.   # just show the names when expanding aliases?
  560.   names = ON
  561.   # when messages are copied into the outbound buffer, don't include headers?
  562.   noheader = ON
  563.   # start up by pointing to the first new message received, if possible?
  564.   pointnew = ON
  565.   # prompt for a command after the external pager exits?
  566.   promptafter = ON
  567.   # emulate the mailx message increment mode (only increment after something
  568.   # has been 'done' to a message, either saved or deleted, as opposed to
  569.   # simply each time something is touched)?
  570.   resolve = ON
  571.   # save messages, incoming and outbound, by login name of sender/recipient?
  572.   savename = ON
  573.   # save outbound messages by login name of sender/recipient even if the
  574.   # associated folder doesn't already exist?
  575.   forcename = OFF
  576.   # are we running on an HP terminal and want HOME, PREV, NEXT, etc...?
  577.   # (this implies "keypad=ON" too)
  578.   softkeys = OFF
  579.   # set the main prompt timeout for resynching...
  580.   timeout = 60
  581.   # display message title when displaying pages of message?
  582.   titles = ON
  583.   # are we good at it?  0=beginner, 1=intermediate, 2+ = expert!
  584.   userlevel = 2
  585.   # tell us about addresses to machines we can't directly get to?
  586.   warnings = OFF
  587.   # enable the weedout list to be read?
  588.   weed = ON
  589.   # what headers I DON'T want to see, ever.
  590.   weedout = "Path:" "Via:" "Sent:" "Date" "Status:" "Original" "Phase"
  591.       "Subject:" "Fruit" "Sun" "Lat" "Buzzword" "Return" "Posted"
  592.       "Telephone" "Postal-Address" "Origin" "X-Sent-By-Nmail-V" "Resent"
  593.       "X-Location" "Source" "Mood" "Neuron" "Libido" "To:" "X-Mailer:"
  594.       "Full-Name:" "X-HPMAIL" "Cc:" "cc:" "Mmdf" "Network-" "Really-"
  595.       "Sender:" "Post" "Message-" "Relay-" "Article-" "Lines:"
  596.       "Approved:" "Xref:" "Organization:"     "*end-of-user-headers*"
  597.   # alternative addresses that I could receive mail from (usually a
  598.   # forwarding mailbox) and don't want to have listed...
  599.   alternatives = hplabs!taylor  hpldat!taylor  taylor@hplabs  taylor%hpldat
  600. .ne 5
  601. .hn 1 The Command Line Options
  602. There are a number of command line options to the \f2elm\f1
  603. program, with only one that needs to be remembered: ``-?''or ``-h'' for help.
  604. The flags are:
  605. .lp \h'24p'-a 66p
  606. Arrow.  This allows you to have the ``->'' arrow pointer
  607. rather than the inverse bar.  This can also be set in
  608. the \f2.elm/elmrc\f1
  609. file \(em check the boolean variable \f2arrow\f1).
  610. .lp \h'24p'-c 66p
  611. Check only.  This is useful for expanding aliases
  612. without sending any mail.  The invocation is similar to
  613. invoking \f2elm\f1 in send-only mode:
  614. .ft CW
  615. elm -c\f2  list-of-aliases\f1
  616. .lp "\h'24p'-d \f2n\f1" 66p
  617. Set debug level to \f2n\f1.  Useful for debugging the \f2elm\f1
  618. program, this option will create a file in your home
  619. directory called \f2ELM:debug.info\f1, then
  620. output a running log of what is going on with
  621. the program.  Level \f2n\f1 can be 1 through 11,
  622. where the higher numbers generate more output.
  623. This option might be disabled by the the person who configured
  624. \f2elm\f1 for your system.
  625. .lp "\h'24p'-f \f2folder\f1" 66p
  626. Folder.  Read specified folder rather than the default incoming mailbox.
  627. Note that you can use the same metacharacters (e.g. `=') as when
  628. you \f2change folders\f1 from within the program.  You can also use the
  629. same abbreviatory symbols (`!', `>' and `<'),
  630. but remember to ``single quote'' them
  631. in case they have special meaning in the shell you use.
  632. .lp "\h'24p'-h or -?" 66p
  633. Help.  Gives a short list of all these options and exits.
  634. .lp \h'24p'-k 66p
  635. Keypad \(em This option, when used, lets the \f2elm\f1 program
  636. know that you're on an HP terminal, and it can then interpret
  637. the <PREV>, <NEXT> and <HOME>/<SHIFT>-<HOME> keys accordingly.  If you
  638. are not on an HP terminal, it is recommended that you do
  639. NOT use this option. (See the \f2keypad\f1 option in
  640. the \f2.elm/elmrc\f1 section.)
  641. .lp \h'24p'-K 66p
  642. Keypad + softkeys.  The \f2elm\f1 mailer can
  643. use the HP softkeys as an alternative form of
  644. input.  If you specify this option be sure that you're on
  645. an HP terminal that can accept the standard 2622 terminal
  646. escape sequences! (See the \f2softkeys\f1 option in
  647. the \f2.elm/elmrc\f1 section for more information.)
  648. .lp \h'24p'-m 66p
  649. Inhibit display of the 3-line menu when using the mailer.  This,
  650. of course, gives you three more message headers per page instead.
  651. (See also the
  652. .ft CW
  653. menu\f1 option in
  654. the \f2.elm/elmrc\f1 section.)
  655. .lp "\h'24p'-s \f2subject\f1" 66p
  656. In send-only and batch mode, this is how to indicate the subject of the
  657. resulting message.  Please see the section on ``Non-Interactive
  658. Uses of Elm'' in \f2The Elm Users Guide\f1 for more information.
  659. .lp \h'24p'-z 66p
  660. Zero.  This causes the mailer not to be started if you don't
  661. have any mail.   This emulates the behaviour of programs
  662. like \f2Berkeley Mail\f1.
  663. .in 0
  664. All the above flags default to reasonable options, so there is
  665. usually no need to use them.  Furthermore, the most used flags
  666. are available through the \f2.elm/elmrc\f1 file.  See above.
  667. .ne 5
  668. .hn 1 Special Outgoing Mail Processing
  669. There are a few extra features that the mailer offers on
  670. outgoing mail that are worthy of mention:
  671. The first, and probably the most exciting feature\s-2\u3\d\s0, is the
  672. 3. Unfortunately, at many non-US sites, it's quite probable that
  673. you won't be able to use this feature since you won't have
  674. the \f2crypt()\f1 library available due to licensing restrictions.
  675. ability to send \f2encrypted\f1 mail! To do this is
  676. extremely simple:  You need merely to have two key lines
  677. .ft CW
  678. [\&encode]\f1 and
  679. .ft CW
  680. [\&clear]\f1 in the message body.
  681. Consider the following outgoing message:
  682. .ps 9
  683. .in .5i
  684. .ft CW
  685. Remember that talk we had about Amy?  Well, I talked to my manager
  686. about it and he said...
  687. uhh...better encrypt this...the usual `key'...
  688. [\&encode]
  689. He said that Amy was having family problems and that it had been
  690. affecting her work.
  691. Given this, I went and talked to her, and told her I was sorry for
  692. getting angry.  She said that she understood.
  693. We're friends again!!
  694. [\&clear]
  695. Exciting stuff, eh?
  696. \h'3i'Mike
  697. .ps 10
  698. .ft 1
  699. .in 0
  700. While this is obviously quite readable while being typed into
  701. the editor, as soon as the message is confirmed as wanting
  702. to be sent, the \f2elm\f1 mailer prompts with:
  703. .ft CW
  704. .ps 9
  705. .ti .5i
  706. Enter encryption key: @
  707. .ps 10
  708. .ft 1
  709. and accepts a key (a series of 8 or less characters) without
  710. echoing them to the screen.  After entry, it will ask for the
  711. same key again to confirm it, then *poof* it will encrypt and
  712. send the mail.
  713. If you have the \f2copy\f1 option enabled, the program will save
  714. your copy of the message encrypted too.  (This is to ensure
  715. the privacy and security of your mail archive, too.)
  716. If the mailer doesn't ask for the encryption key, it's because
  717. you don't have the
  718. .ft CW
  719. [\&encode]\f1 entered as the first 8 characters
  720. of the line.  It MUST be so for this to work!!
  721. On the other end, a person receiving this mail (they must also
  722. be using \f2elm\f1 to receive it, since this mailer has a
  723. unique encryption program) will be reading the
  724. message and then suddenly be prompted:
  725. .ft CW
  726. .ps 9
  727. .ti .5i
  728. Enter decryption key: @
  729. .ft 1
  730. .ps 10
  731. and will again be asked to re-enter it to confirm.
  732. The program will then on-the-fly decrypt the mail
  733. and display each line as it is decoded.  The
  734. .ft CW
  735. [\&clear]\f1
  736. line signifies that the block to encrypt is done.
  737. Note that it is not possible currently to \f2pipe\f1 or \f2print\f1
  738. encrypted mail.
  739. .sp 2
  740. The other option on outgoing mail is the ability to
  741. specify what section of the message you want to have
  742. archived (assuming \f2copy\f1 is enabled) and what section
  743. you don't.  This is most useful for sending out source
  744. file listings and so on.
  745. To indicate the end of the section that should be
  746. saved in the archive, you need merely to have the
  747. .ft CW
  748. .ti .5i
  749. [\&nosave]
  750. .ft 1
  751. .ft CW
  752. .ti .5i
  753. [\&no save]
  754. .ft 1
  755. appear by itself on a line.  This will be removed from
  756. the outgoing mail, and will indicate the last line of
  757. the message in the saved mail.
  758. Other than this, the saved mail is identical to the outgoing mail.
  759. .ne 5
  760. .hn 1 Customized header lines
  761. The mailer provides a facility for including customized
  762. header lines in the messages you send.
  763. If you have an \f2.elm/elmheaders\f1 file,
  764. the mailer will include its contents
  765. immediately after the regular headers of all outbound  mail.
  766. The mailer supports use of the backquote convention in this file.
  767. Here's a typical \f2.elm/elmheaders\f1 file.
  768. .ft CW
  769.   Organization: Hewlett-Packard Laboratories
  770.   Phone: (415)-555-1234
  771.   Operating System: `uname -srv`
  772. .ft 1
  773. These lines will appear after all other header lines in the message.
  774. .ne 5
  775. .hn 1 Commands
  776. This section will discuss each command in the \f2elm\f1
  777. program in more detail than above, including the
  778. prompts the user can expect upon executing the
  779. command, the meaning of different options, etc.
  780. .lp \h'24p'? 66p
  781. Help.  This command used once puts you in the \f2help\f1
  782. mode, where any key you press will result in a one-line description
  783. of the key.  Pressed again at this point will produce a two page
  784. summary listing each command available.
  785. <escape> or `.' will leave the help mode and return you to the
  786. main menu level.
  787. .lp \h'24p'<space> 66p
  788. Display the current message.
  789. <space> is useful for reading through a mail folder.
  790. When issued from the index screen,
  791. it will display the first screen of the current message;
  792. and then when issued while in the builtin pager,
  793. it will page through the message to the end;
  794. and then when issued at the end of a message
  795. (with either the builtin pager or an external pager),
  796. it will display the first screen of the next message not marked for deletion.
  797. .lp \h'24p'<return> 66p
  798. Display the current message.
  799. <return> behaves somewhat differently from <space>.
  800. When issued while in the builtin pager,
  801. it will scroll the current message forward one line,
  802. and then when issued at the end of a message
  803. (with either the builtin pager or an external pager),
  804. it will redisplay the first screen of the the \f2current\fP message.
  805. The latter is useful in case you have issued a non-pager
  806. command while in the builtin pager and want to restart the display
  807. of the current message.
  808. .lp \h'24p'! 66p
  809. Shell.  This allows you to send a command to the shell without
  810. leaving the program.
  811. .lp \h'24p'| 66p
  812. Pipe.  This command allows you to pipe the current message
  813. or the set of \f2tagged\f1 messages
  814. through other filters as you desire.  The shell used for
  815. the entire command will be either the one specified in
  816. your \f2.elm/elmrc\f1 file, or the default shell (see above).
  817. .lp \h'24p'\/ 66p
  818. Pattern match.  This command, on the top level, allows the
  819. user to search through all the \f2from\f1 and \f2subject\f1 lines of
  820. the current folder starting at the current message and
  821. continuing through the end.  If the first character of the
  822. pattern is a `/', then the program will try to match the
  823. specified pattern against \f2any\f1 line in the folder.  Again,
  824. this works from one after the current message through the
  825. end.  Both searches are case insensitive.
  826. .lp "\h'24p'- or <left>" 66p
  827. Display the next page of the message index.
  828. .lp "\h'24p'+ or <right>" 66p
  829. Display the previous page of the message index.
  830. .lp \h'24p'<number><return> 66p
  831. Specify new current message.  When you type in any digit key \f2elm\f1 will
  832. prompt ``Set current to : n'', where `n' is
  833. the digit entered.  Enter the full number
  834. and terminate with <return>.  Note that changing the
  835. current message to a message not on the
  836. current page of headers will result in a new page
  837. being displayed.
  838. .lp \h'24p'< 66p
  839. Scan message for calendar entries.  A rather novel feature of
  840. the \f2elm\f1 mailer is the ability to automatically incorporate
  841. calendar/agenda information from a mail message into the users
  842. calendar file.  This is done quite simply; any line that has
  843. the pattern
  844. .ti +.5i
  845. -> \f2calendar entry\f1
  846. will be automatically added to the users \f2calendar\f1 file (see
  847. the \f2calendar\f1 option of the \f2.elm/elmrc\f1 file) if the `<'
  848. command is used.
  849. For example, let's say we had a message with the text:
  850. .ft CW
  851. .ps 9
  852. .ti +.5i
  853. Regardless of that meeting, here's the seminar stuff:
  854. .ti +.5i
  855. -> 8/03 3:00pm: AI Seminar with Ira Goldstein of HP Labs
  856. .ft 1
  857. .ps 10
  858. then using the `<' command would add the line:
  859. .ft CW
  860. .ps 9
  861. .ti +.5i
  862. 8/03 3:00pm: AI Seminar with Ira Goldstein of HP Labs
  863. .ps 10
  864. .ft 1
  865. to the users \f2calendar\f1 file.
  866. .lp \h'24p'a 66p
  867. Alias.  The alias system is a way by which more complex mail addresses
  868. can be shortened for the mail user.  For example:
  869. .ps 9
  870. .ft CW
  871. .ti +.5i
  872. joe, bleu   =  Joe Bleu  =   joe@hpfcla.SSO.HP.COM
  873. .ft 1
  874. .ps 10
  875. which allows mail to `joe' or `bleu' with the system expanding
  876. the address properly.  As is obvious, this not only saves remembering
  877. complex addresses, it also allows the address to be optimized to
  878. go through the minimum number of machines without anyone having to
  879. be informed of the change.  A more detailed discussion can
  880. be found in either the section entitled \f2The Alias System\f1 in
  881. this document or \f2The Elm Alias System Users Guide\f1.
  882. .lp \h'24p'b 66p
  883. Bounce mail.  This ``remails'' mail to someone else in such a
  884. way as to make the return address the original sender rather
  885. than you.  (The \f2forward\f1 command is similar, but it makes
  886. the return address \f2you\f1 rather than the original sender.)
  887. .lp \h'24p'C 66p
  888. Copy to folder.  This command copies the current message or set of
  889. tagged messages to
  890. a folder.  If there is anything in the folder currently the
  891. message or messages are appended to the end, otherwise the folder is created
  892. containing only the newly copied message.  The prompt for this command
  893. is `Copy to folder: '.  A response of <return> cancels the command
  894. and returns the user to the system prompt.  The usual filename
  895. metacharacters are available, too.  That is, this command expands filenames
  896. with `~' being your home directory and `=' being your
  897. \f2maildir\f1 directory, if defined.  This command also allows you to
  898. use `>' for your \f2receivedmail\f1 folder and
  899. `<' for your \f2sentmail\f1 folder.  You can also enter `?' at the prompt
  900. to list the names of your folders.
  901. .lp \h'24p'c 66p
  902. Change folder.  Specifying this command allows the user to change
  903. the folder that is currently being read.  This is intended
  904. for perusal and reply to previously archived messages.
  905. The prompt is `Name of new folder: ' and entering <return>
  906. cancels the operation, while entering a filename causes the program
  907. to read that file as the new folder,
  908. if possible.  This command expands filenames
  909. with `~' being your home directory and `=' being your
  910. \f2maildir\f1 directory, if defined.  This command also allows you to
  911. use `!' as an abbreviation for you incoming mailbox,
  912. `>' for your \f2receivedmail\f1 folder, and
  913. `<' for your \f2sentmail\f1 folder.  You can also enter `?' at the prompt
  914. to list the names of your folders.
  915. .lp "\h'24p'd, u" 66p
  916. Delete and Undelete.  Neither of these two commands have any prompts
  917. and indicate their action by either adding a `D' to the current
  918. message index entry (indicating deletion pending) or removing
  919. the `D' (indicating that the message isn't set for deletion).
  920. .lp \h'24p'<control>-D 66p
  921. This command allows you to easily mark for deletion all messages
  922. that have a specific pattern.  After <control>-D is pressed,
  923. the program will prompt for the string to match (currently it
  924. only matches either the \f2from\f1 or \f2subject\f1 lines of
  925. the message).
  926. .lp \h'24p'<control>-U 66p
  927. This is the direct opposite command to the previous \(em all messages
  928. that match the specified pattern can have any mark for deletion
  929. removed by using this command.
  930. .lp \h'24p'e 66p
  931. Edit mailbox.  This allows you to modify the current mail file at
  932. a single keystroke.  This is mostly useful for editing down messages
  933. before saving them.  Modifying headers should be done with extreme
  934. caution, as they contain routing information and other vital stuff
  935. for full functionality.
  936. .lp \h'24p'f 66p
  937. Forward.  Allows the user to forward the current message to another user.
  938. This copies the message into the edit buffer and allows the user to add
  939. their own message too.  The prompt is `Forward to:' and will expand an alias
  940. if entered.  (See also \f2bounce\f1, above.)
  941. Elm will ask you if you want to edit the message before sending it.  If you
  942. answer `yes', Elm will prepend your prefix string to each line of the
  943. message, and let you edit the result.  If you do not want the prefix string
  944. on each line, answer `no'; you will have another chance to edit the message
  945. when you get to the `send' menu.  (See also the `elmrc' section, under
  946. \f2prefix\f1.)
  947. .lp \h'24p'g 66p
  948. Group reply.  Identical to \f2reply\f1 below, except that the
  949. response is mailed to \f2all recipients\f1 of the original
  950. message (except yourself \(em see the \f2alternatives\f1
  951. option for your \f2.elm/elmrc\f1 file above).
  952. .lp \h'24p'h 66p
  953. Display the current message with all headers intact.
  954. When you display a message with other commands,
  955. certain header lines are formatted and others discarded (according
  956. to the \f2weedlist\fP parameter in your \f2.elm/elmrc\f1 file).
  957. .lp \h'24p'i 66p
  958. Return to the index screen,
  959. when issued in the builtin pager or at the end of a message (with
  960. either the builtin pager or an external pager).
  961. .lp "\h'24p'j or <down>, k or <up>" 66p
  962. These four keys work similarly to what they would do in \f2vi\f1 or
  963. any of the other (precious few) screen oriented
  964. programs.  The `j' and <down> keys move
  965. the current message pointer down to the next message skipping
  966. over any marked deleted (going to
  967. the next page if needed) and the `k' and <up> keys move the current
  968. message pointer back to the previous message skipping
  969. over any marked deleted (also changing pages if needed)
  970. .lp "\h'24p'J, K" 66p
  971. These two keys work similarly to their lower case counterparts,
  972. except that they don't skip over deleted messages.
  973. .lp \h'24p'l 66p
  974. Limit.  This feature allows you to specify a subset of the existing
  975. messages to be dealt with.  For example, let's say we had a folder with
  976. four hundred messages in it, about four or five different subjects.  We
  977. could then limit what we're dealing with by using the \f2limit\f1
  978. command.  Pressing `l' would result in the prompt:
  979. .ft CW
  980. .ti +.5i
  981. Criteria:
  982. .ft 1
  983. to which we could answer
  984. .ft CW
  985. subject \f2string\f1,
  986. .ft CW
  987. from \f2string\f1 or
  988. .ft CW
  989. to \f2string\f1.  In our example, we could use
  990. .ft CW
  991. subject programming\f1
  992. as a criteria for selection.  Once we've limited our selections down,
  993. the screen will be rewritten with just the selected messages
  994. and the top line will change to have a message
  995. like:
  996. .ft CW
  997. .ps 9
  998. .tl ''     Folder is "=elm" with 92 shown out of 124 [Elm 2.2]'
  999. .ps 10
  1000. .ft 1
  1001. We can further limit selections by entering further criteria, each
  1002. time using the \f2limit\f1 option again.
  1003. To clear all the criteria and get back to the `regular' display, simply
  1004. enter \f2all\f1 as the limiting criteria.  It should be noted that the
  1005. selection based on ``to'' isn't fully implemented for this version, so
  1006. it is recommended that users stay with ``subject'' and ``from'' as the
  1007. basis for their criteria.
  1008. .lp \h'24p'm 66p
  1009. Mail.  Send mail to a specified user.  The prompt that is associated
  1010. with this command is `Send mail to :'.  Entering an alias name results
  1011. in the full address being rewritten in parenthesis immediately.  This
  1012. prompt is followed by `Subject:' which allows the user to title their
  1013. note.  The final field is `Copies to: ', which allows other people
  1014. specified to receive "carbon copies" of the message.  (See the \f2askcc\f1
  1015. option of the \f2.elm/elmrc\f1 file above.)  Upon entering all three items the
  1016. editor is invoked and the message can be composed.
  1017. .lp \h'24p'n 66p
  1018. Next message that is not marked deleted:
  1019. useful for displaying successive messages in a folder.
  1020. When issued from the index screen, it displays the current message,
  1021. and then when issued while in the builtin pager or at the end of a message
  1022. (with either the builtin pager or an external pager),
  1023. it will display the first screen of the next message not marked for deletion.
  1024. .lp \h'24p'o 66p
  1025. Options.  This full-screen display allows you to alter the settings
  1026. of a number of parameters, including the current sorting method,
  1027. the method of printing files, the calendar file, the save file, and
  1028. so on.  It's self-documenting (where have you heard \f2that\f1
  1029. before?) so isn't explained in too much detail here.
  1030. .lp \h'24p'p 66p
  1031. Print.  This allows you to print out the current
  1032. message or the tagged messages to a previously defined printer.  (See
  1033. the section on the \f2.elm/elmrc\f1 discussing the \f2print\f1 variable.)
  1034. .lp \h'24p'q 66p
  1035. Quit.  If you in the pager, you are returned to the index screen. If you are
  1036. on the index screen, \f2elm\f1 quits altogether.  However, if you have the
  1037. option \f2ask\fP set, \f2elm\f1 first prompts you for the disposition of the
  1038. messages in the current folder.  If any messages are marked for deletion, it
  1039. will ask if you want them deleted.  If the current folder is your incoming
  1040. mailbox, you will also be asked if read messages should be stored in your
  1041. \f2receivedmail\f1 folder,
  1042. and if unread messages should be kept in the incoming mailbox.
  1043. The default answers to these questions are set by the \f2.elm/elmrc\f1
  1044. options \f2alwaysdelete\fP, \f2alwaysstore\fP, and \f2alwayskeep\fP.
  1045. However, if you elect to not store your read messages (i.e. keep them)
  1046. it is presumed you want to keep your unread messages, too.
  1047. .lp \h'24p'Q 66p
  1048. Quick quit.  This behaves similar to the `q' command except that
  1049. you are never prompted for answers to the message disposition questions.
  1050. \f2Elm\f1 will dispose of messages according to the values you
  1051. have set for \f2alwaysdelete\f1, \f2alwaysstore\f1, and \f2alwayskeep\f1
  1052. in your \f2.elm/elmrc\f1 file.
  1053. .lp \h'24p'r 66p
  1054. Reply.  Reply to the sender of the current message.  If
  1055. the \f2autocopy\f1 flag is OFF in your \f2.elm/elmrc\f1 file, the program will
  1056. prompt ``Copy message? (y/n)'' to which the user can specify
  1057. whether a copy of the source message is to be copied into the edit
  1058. buffer, or not.  If copied in, all lines from the message are
  1059. prepended with the \f2prefix\f1 character sequence specified in
  1060. your \f2.elm/elmrc\f1 file.
  1061. .lp \h'24p's 66p
  1062. Save to folder.  This command is like the `copy' command, except
  1063. that the saved messages are marked for deletion, and that if you are
  1064. saving just the current message, the current message pointer is
  1065. incremented afterwards (see the \f2resolve\f1 option in the \f2.elm/elmrc\f1
  1066. file above).  This command expands folder names
  1067. with `~' being your home directory and `=' being your
  1068. \f2maildir\f1 directory, if defined.  This command also allows you to
  1069. use `>' for your \f2receivedmail\f1 folder and
  1070. `<' for your \f2sentmail\f1 folder.
  1071. .lp \h'24p't 66p
  1072. 4. Currently only \f2pipe\f1, \f2print\f1, and \f2save\f1 support this.
  1073. Tag the current message for a later operation\s-2\u4\d\s0.
  1074. .lp \h'24p'<control>-T 66p
  1075. Tag all messages containing the specified pattern.  Since \f2tagging\f1
  1076. messages can occur on screens other than the one being viewed, the
  1077. \f2elm\f1 system will first check to see if any messages are currently
  1078. \f2tagged\f1 and ask you if you'd like to remove those tags.  After
  1079. that, it will, similar to the \f2<control>-D\f1 function, prompt for
  1080. a pattern to match and then mark for deletion all messages that contain
  1081. the (case insensitive) pattern in either the \f2from\f1 or \f2subject\f1
  1082. lines.
  1083. .lp \h'24p'x 66p
  1084. Exit.  This leaves \f2elm\f1 discarding any changes to the mailbox.
  1085. If changes are pending (such as messages marked for deletion) a prompt
  1086. is made to confirm discarding the changes.  If confirmed, no
  1087. messages are deleted and the statuses of messages are unchanged.  That is,
  1088. any messages that were new will remain new instead of being noted as old,
  1089. and any messages that were read for the first time
  1090. will be again noted as unread.
  1091. .lp \h'24p'X 66p
  1092. Exit immediately.  This leaves \f2elm\f1 in the quickest possible manner
  1093. without even prompting about discarding the changes to the mailbox.
  1094. No messages are deleted and the statuses of messages are unchanged.  That is,
  1095. any messages that were new will remain new instead of being noted as old,
  1096. and any messages that were read for the first time
  1097. will be again noted as unread.
  1098. .in 0
  1099. When you are about to send of a message under the \f2forward\f1, \f2mail\f1,
  1100. or \f2reply\f1 commands (see above), a small menu of the following
  1101. options appears:
  1102. .lp \h'24p'c 66p
  1103. Specify folder for saving a copy to.  This allows you to override the
  1104. \f2copy\f1, \f2forcename\f1 and \f2savename\f1 options
  1105. of your \f2.elm/elmrc\f1 file.  It prompts you for the name
  1106. of the folder where a copy of the outgoing message is to be saved.  The
  1107. default displayed is taken from those three \f2.elm/elmrc\f1
  1108. options and can be changed.  This command also allows you to
  1109. use `>' for your \f2receivedmail\f1 folder
  1110. and `<' for your \f2sentmail\f1 folder,
  1111. and `=?' to mean ``conditionally save by name''
  1112. and `=' to mean ``unconditionally save by name''. (See the \f2savename\f1
  1113. option above for details on saving by name.)  (Since you could next enter
  1114. the \f2edit headers\f1 command and change the recipients
  1115. of your message, the name of the folder under the
  1116. two ``save by name'' options is not established until you enter the \f2send\f1
  1117. command.)  You can also enter `?' at the prompt
  1118. to list the names of your folders.
  1119. .lp \h'24p'f 66p
  1120. Forget.  This gets you out of sending a message you started. If you are
  1121. in send-only mode, the message is saved to the file \f2Cancelled.mail\f1
  1122. in your home directory.  Otherwise
  1123. it can be restored at the next \f2forward\f1, \f2mail\f1,
  1124. or \f2reply\f1 command during the current session of \f2elm\f1. After
  1125. issuing one of those commands you will be prompted with ``Recall last
  1126. kept message?''
  1127. .lp \h'24p'e 66p
  1128. Edit message (or form).  Entering this command will allow you to edit
  1129. the text of your message or form.
  1130. .lp \h'24p'h 66p
  1131. Edit headers.  This puts you into the \f2header editing mode\f1, whereby
  1132. you can edit to any of the various headers of your message.  Like
  1133. the options screen, it's self-documenting, so it isn't explained in too much
  1134. detail here.
  1135. .lp \h'24p'm 66p
  1136. Make form.  This converts the message you have edited into a form.  (See
  1137. \f2The Elm Forms Mode Guide\f1 for more details.)
  1138. .lp \h'24p's 66p
  1139. Send.  This sends the message as is without any further ado.
  1140. .in 0
  1141. .ne 5
  1142. .hn 1 "Using Elm with ``editor = none''"
  1143. The \f2Elm\f1 program also supports a builtin editor for simple message
  1144. composition that is very (very) similar to the simple line
  1145. editor available from the \f2Berkeley Mail\f1 system.
  1146. To access it, you need merely to specify ``\f2editor=none\f1'' in
  1147. your \f2.elm/elmrc\f1 file.
  1148. With that, any messages to be composed
  1149. that don't already have text in the buffer (e.g. no reply with
  1150. the text included, etc), will use this editor.
  1151. From the builtin editor, the following options are available for use.
  1152. Each command here is prefixed with a `~'.
  1153. You can specify a different ``escape'' character in your \f2.elm/elmrc\f1 file,
  1154. if you desire (see above).
  1155. .lp \h'16p'~? .5i
  1156. Print a brief help menu.
  1157. .lp \h'16p'~b .5i
  1158. Change the Blind-Carbon-Copy list.
  1159. .lp \h'16p'~c .5i
  1160. Change the Carbon-Copy list.
  1161. .lp \h'16p'~e .5i
  1162. Invoke the Emacs editor on the message, if possible.
  1163. .lp \h'16p'~f .5i
  1164. Add the specified message or current message.
  1165. .lp \h'16p'~h .5i
  1166. Change all the available headers (To, Cc, Bcc, and Subject).
  1167. .lp \h'16p'~m .5i
  1168. Same as `~f', but with the current `prefix'.
  1169. .lp \h'16p'~o .5i
  1170. Invoke a user specified editor on the message.
  1171. .lp \h'16p'~p .5i
  1172. Print out the message as typed in so far.
  1173. .lp \h'16p'~r .5i
  1174. Include (read in) the contents of the specified file.
  1175. .lp \h'16p'~s .5i
  1176. Change the Subject line.
  1177. .lp \h'16p'~t .5i
  1178. Change the To list.
  1179. .lp \h'16p'~v .5i
  1180. Invoke the Vi visual editor on the message.
  1181. .lp \h'16p'~< .5i
  1182. Execute the specified unix command, entering the output
  1183. of the command into the editor buffer upon completion.
  1184. (For example ``~< who'' will include the output of
  1185. the \f2who\f1 command in your message.)
  1186. .lp \h'16p'~! .5i
  1187. Execute a unix command if one is given (as in ``~!ls'') or
  1188. give the user a shell (either from their shell setting in
  1189. their \f2.elm/elmrc\f1 file or the default).
  1190. .lp \h'16p'~~ .5i
  1191. Add a line prefixed by a single `~' character.
  1192. .in 0
  1193. A useful note is that the `~f' and `~m' commands invoke the \f2readmsg\f1
  1194. command, so you can pass parameters along too.  For example, if we
  1195. wanted to include a message from Joe, without any headers, prefixed,
  1196. we could use:
  1197. .ti .5i
  1198. ~m -n Joe
  1199. to accomplish the task.
  1200. To learn more about how they work, try 'em!
  1201. .ne 5
  1202. .hn 1 The Alias System
  1203. As mentioned previously, there exists in the \f2elm\f1
  1204. system a set of aliases that associate
  1205. an arbitrary word (such as a persons name) to a complex address or group.
  1206. The advantages are readily apparent; rather than
  1207. remembering an address of the form:
  1208. .ps 9
  1209. .ft CW
  1210. .ti .5i
  1211. host1!host2! ... !hostN!user
  1212. .ft 1
  1213. .ps 10
  1214. the user merely has to remember a single word.
  1215. Two alias tables are available for a each
  1216. user within \f2elm\f1,
  1217. namely the system alias file and the user's alias file.  The
  1218. system alias file is created and maintained (by the system administrator)
  1219. by editing the
  1220. file \f2SYSTEM_ALIASES\f1 as defined in the `sysdefs.h' file
  1221. (see \f2The Elm Configuration Guide\f1) and as described
  1222. in the documentation with the \f2newalias\f1 command,
  1223. then running the \f2newalias\f1 program.
  1224. An individual user can also have an alias file which works
  1225. in conjunction with the system aliases.  To do this, they
  1226. need merely to peruse the documentation for the \f2newalias\f1
  1227. command and create a file as indicated therein.  After
  1228. executing the program, the aliases will be available
  1229. for using from within \f2elm\f1.
  1230. Please refer to \f2The Elm Alias Users Guide\f1 for more helpful
  1231. hints and so on.
  1232. .sp 2
  1233. Within \f2elm\f1,
  1234. however, the alias system acts as an entirely different program, with
  1235. it's own commands and own mini-menu.  The menu replaces the
  1236. standard mini-menu with:
  1237. .ps 9
  1238. .ft CW
  1239. --------------------------------------------------------------------------------
  1240. Alias commands
  1241. .ce 2
  1242. a)lias current message, d)elete an alias, check a p)erson or s)ystem,
  1243. l)ist existing aliases, m)ake new alias or r)eturn
  1244. .sp 2
  1245. Alias: @
  1246. --------------------------------------------------------------------------------
  1247. .ps 10
  1248. .ft 1
  1249. The commands are:
  1250. .lp \h'16p'a .5i
  1251. Alias current message.
  1252. This allows the user to create an alias that has the
  1253. return address of the current message as the address field of
  1254. the alias.  It prompts for a unique alias name.   Important
  1255. note: when you alias an address in this fashion, the mailer
  1256. will try to minimize the amount it needs to store by
  1257. iteratively comparing machine names in the path with the
  1258. machines in the pathalias database.  Once it finds an entry
  1259. the address will be saved at that point.   For further
  1260. information, please see \f2The Elm Alias System Users Guide\f1.
  1261. .lp \h'16p'd .5i
  1262. Delete an existing alias.
  1263. This allows the user to delete an alias the user has previously made.
  1264. It prompts for the alias name, and displays the alias information, if
  1265. found, and then prompts for confirmation to delete.
  1266. .lp \h'16p'l .5i
  1267. List all existing aliases.
  1268. This simply lists all the aliases you have previously made.
  1269. .lp \h'16p'm .5i
  1270. Make user alias.  This will prompt for a unique alias name and
  1271. then for an address.  The information provided will be added
  1272. to your individual aliases.text file (\f2$HOME/.elm/aliases.text\f1) and
  1273. then added to the database.
  1274. .lp \h'16p'p .5i
  1275. Check personal alias.  This is a simple way of checking what is in the alias
  1276. database \(em it prompts for an alias name, and returns the address
  1277. associated with that name or the error message `alias not found'
  1278. as appropriate.
  1279. .lp \h'16p'r .5i
  1280. Return.  Return to the main level of the \f2elm\f1 program.
  1281. .lp \h'16p's .5i
  1282. Check system alias.  If you're not sure that your machine can talk
  1283. to another machine, you can use this command to either find the
  1284. appropriate route or find that you're correct in your suspicions
  1285. and it is indeed unknown!
  1286. .in 0
  1287. .ne 5
  1288. .hn 1 While We're Talking Aliases...
  1289. Another feature worthy of discussion, since it's been getting
  1290. lots of veiled references throughout this document, is the
  1291. host-path file.  This is implemented using the uucp pathalias
  1292. database, with a file containing lines with the format:
  1293. .ti .5i
  1294. \f2hostname\f1        \f2address\f(CW!%s\f1
  1295. .ti .5i
  1296. \f2hostname\f1        \f(CW%s@\f2hostname\f1
  1297. The actual details of the file are located in
  1298. \f2The Alias System Users Guide\f1.
  1299. Anyway, to use them is quite simple...when specifying the address
  1300. of someone, you can either have an alias for them already, reply
  1301. to their message, or use the system alias feature!
  1302. Enough hype, right?  Okay...to use this feature, you specify an
  1303. address by either "machine!person" ignoring if your specific
  1304. machine can talk directly to the machine specified, or, if you
  1305. prefer the Internet addressing scheme, "person@machine".  When
  1306. you enter the address as specified, the mailer will quickly
  1307. search through the pathalias database file and expand the
  1308. specified address to be a legitimate routing address.
  1309. What's really nice about this is that the address that we're
  1310. going to send to can be either on ARPA, CSNET, BITNET, uucp,
  1311. or any other network.  The method of specifying the basic
  1312. address is the same regardless!
  1313. For example, mail to me could be sent as either "hplabs!taylor"
  1314. or "taylor@hplabs".  \f2elm\f1 will expand them
  1315. both in the same manner and include a ``route'' to the
  1316. machine \f2hplabs\f1, if needed.
  1317. For those sites with the domains database installed, you can
  1318. also mail to users on domain based systems by simply specifying
  1319. their name, the machine they receive mail on and a full domain
  1320. specification.
  1321. For example, say you have a friend Maurice who reads mail
  1322. on \s9JOEVAX\s10 in the Mailnet world.  You could mail to him by using
  1323. the address "Maurice@\s9JOEVAX.MAILNET\s10" and your system will
  1324. expand the address correctly.
  1325. .ne 5
  1326. .hn 1 Expert Mail Users and Debugging the Mailer
  1327. There are some additional facilities available in the \f2elm\f1
  1328. mailer for those people who are knowledgeable about
  1329. mail protocols, or trying to debug/track down a problem.
  1330. The `h' \f2headers\f1 command at the outermost level of the mailer
  1331. will display the current message ignoring the current
  1332. setting of the `weed' option.  This is most useful
  1333. for answering questions of the form "I wonder what
  1334. this guy put in his header?" and such.  This command
  1335. does not show up on the mini-menu because it is somewhat
  1336. esoteric, but it does appear on the `?' help screen (can
  1337. you find it there, though?).
  1338. The `@' command at the outermost level of the mailer
  1339. will output a screen of debugging information,
  1340. including the number of lines and
  1341. offsets of each of the messages in the current mailbox.
  1342. The `#' command at the outermost level of the mailer
  1343. will display the entire stored `record structure' for
  1344. the current message.
  1345. The `%' command
  1346. will display the full computed return address of the
  1347. current message.
  1348. Starting up \f2elm\f1 with the "-d" debug option will create a file called
  1349. \f2ELM:debug.info\f1 in your home directory and contain a wealth of useful
  1350. information (to me, at least!) to aid in tracking down
  1351. what errors are occurring and why.
  1352. If there are any problems with the mailer,  please try
  1353. to recreate the error with the debug option enabled
  1354. and set to the highest level (11) before sending defect reports my way.
  1355. .sp 3
  1356. One final note: all error names reported by the program
  1357. are documented in the AT&T System V Interface Definition Reference
  1358. Manual in \f2errno\f1(2).
  1359.