home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / com / utils / elm / sources / ref.gui < prev    next >
Text File  |  1991-01-18  |  62KB  |  1,725 lines

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