home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / share / doc / usd / 07.Mail / mail5.nr < prev    next >
Encoding:
Text File  |  1993-02-23  |  28.7 KB  |  1,042 lines

  1. .\" Copyright (c) 1980 The Regents of the University of California.
  2. .\" All rights reserved.
  3. .\"
  4. .\" Redistribution and use in source and binary forms, with or without
  5. .\" modification, are permitted provided that the following conditions
  6. .\" are met:
  7. .\" 1. Redistributions of source code must retain the above copyright
  8. .\"    notice, this list of conditions and the following disclaimer.
  9. .\" 2. Redistributions in binary form must reproduce the above copyright
  10. .\"    notice, this list of conditions and the following disclaimer in the
  11. .\"    documentation and/or other materials provided with the distribution.
  12. .\" 3. All advertising materials mentioning features or use of this software
  13. .\"    must display the following acknowledgement:
  14. .\"    This product includes software developed by the University of
  15. .\"    California, Berkeley and its contributors.
  16. .\" 4. Neither the name of the University nor the names of its contributors
  17. .\"    may be used to endorse or promote products derived from this software
  18. .\"    without specific prior written permission.
  19. .\"
  20. .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  21. .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  24. .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  25. .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  26. .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  27. .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  28. .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  29. .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  30. .\" SUCH DAMAGE.
  31. .\"
  32. .\"    @(#)mail5.nr    6.4 (Berkeley) 4/17/91
  33. .\"
  34. .bp
  35. .sh 1 "Additional features"
  36. .pp
  37. This section describes some additional commands useful for
  38. reading your mail, setting options, and handling lists of messages.
  39. .sh 2 "Message lists"
  40. .pp
  41. Several
  42. .i Mail
  43. commands accept a list of messages as an argument.
  44. Along with
  45. .b type
  46. and
  47. .b delete ,
  48. described in section 2,
  49. there is the
  50. .b from
  51. command, which prints the message headers associated with the
  52. message list passed to it.
  53. The
  54. .b from
  55. command is particularly useful in conjunction with some of the
  56. message list features described below.
  57. .pp
  58. A
  59. .i "message list"
  60. consists of a list of message numbers, ranges, and names,
  61. separated by spaces or tabs.  Message numbers may be either
  62. decimal numbers, which directly specify messages, or one of the
  63. special characters
  64. .q \(ua
  65. .q "."
  66. or
  67. .q "$"
  68. to specify the first relevant, current, or last
  69. relevant message, respectively.
  70. .i Relevant
  71. here means, for most commands
  72. .q "not deleted"
  73. and
  74. .q "deleted"
  75. for the
  76. .b undelete
  77. command.
  78. .pp
  79. A range of messages consists of two message numbers (of the form
  80. described in the previous paragraph) separated by a dash.
  81. Thus, to print the first four messages, use
  82. .(l
  83. type 1\-4
  84. .)l
  85. and to print all the messages from the current message to the last
  86. message, use
  87. .(l
  88. type .\-$
  89. .)l
  90. .pp
  91. A
  92. .i name
  93. is a user name.  The user names given in the message list are
  94. collected together and each message selected by other means
  95. is checked to make sure it was sent by one of the named users.
  96. If the message consists entirely of user names, then every
  97. message sent by one of those users that is
  98. .i relevant
  99. (in the sense described earlier)
  100. is selected.  Thus, to print every message sent to you by
  101. .q root,
  102. do
  103. .(l
  104. type root
  105. .)l
  106. .pp
  107. As a shorthand notation, you can specify simply
  108. .q *
  109. to get every
  110. .i relevant
  111. (same sense)
  112. message.  Thus,
  113. .(l
  114. type *
  115. .)l
  116. prints all undeleted messages,
  117. .(l
  118. delete *
  119. .)l
  120. deletes all undeleted messages, and
  121. .(l
  122. undelete *
  123. .)l
  124. undeletes all deleted messages.
  125. .pp
  126. You can search for the presence of a word in subject lines with
  127. .b / .
  128. For example, to print the headers of all messages that contain the
  129. word
  130. .q PASCAL,
  131. do:
  132. .(l
  133. from /pascal
  134. .)l
  135. Note that subject searching ignores upper/lower case differences.
  136. .sh 2 "List of commands"
  137. .pp
  138. This section describes all the
  139. .i Mail
  140. commands available when
  141. receiving mail.
  142. .ip "\fB\-\fP\ \ "
  143. The
  144. .rb \-
  145. command goes to the previous message and prints it.  The
  146. .rb \-
  147. command may be given a decimal number
  148. .i n
  149. as an argument, in which case the
  150. .i n th
  151. previous message is gone to and printed.
  152. .ip "\fB?\fP\ \ "
  153. Prints a brief summary of commands.
  154. .ip "\fB!\fP\ \ "
  155. Used to preface a command to be executed by the shell.
  156. .ip "\fBPrint\fP\ \ "
  157. Like
  158. .b print ,
  159. but also print out ignored header fields.  See also
  160. \fBprint\fP, \fBignore\fP and \fBretain\fP.
  161. \fBPrint\fP can be abbreviated to \fBP\fP.
  162. .ip "\fBReply\fP or \fBRespond\fP\ \ "
  163. Note the capital \fBR\fP in the name.
  164. Frame a reply to a one or more messages.
  165. The reply (or replies if you are using this on multiple messages)
  166. will be sent ONLY to the person who sent you the message
  167. (respectively, the set of people who sent the messages you are
  168. replying to).
  169. You can
  170. add people using the \fB~t\fP, \fB~c\fP and \fB~b\fP
  171. tilde escapes.  The subject in your reply is formed by prefacing the
  172. subject in the original message with
  173. .q "Re:"
  174. unless it already began thus.
  175. If the original message included a
  176. .q "reply-to"
  177. header field, the reply will go
  178. .i only
  179. to the recipient named by
  180. .q "reply-to."
  181. You type in your message using the same conventions available to you
  182. through the
  183. .b mail
  184. command.
  185. The
  186. .b Reply
  187. command is especially useful for replying to messages that were sent
  188. to enormous distribution groups when you really just want to
  189. send a message to the originator.  Use it often.
  190. \fBReply\fP (and \fBRespond\fP) can be abbreviated to \fBR\fP.
  191. .ip "\fBType\fP\ \ "
  192. Identical to the
  193. .b Print
  194. command.
  195. \fBType\fP can be abbreviated to \fBT\fP.
  196. .ip "\fBalias\fP\ \ "
  197. Define a name to stand for a set of other names.
  198. This is used when you want to send messages to a certain
  199. group of people and want to avoid retyping their names.
  200. For example
  201. .(l
  202. alias project john sue willie kathryn
  203. .)l
  204. creates an alias
  205. .i project
  206. which expands to the four people John, Sue, Willie, and Kathryn.
  207. If no arguments are given, all currently-defined aliases are printed.
  208. If one argument is given, that alias is printed (if it exists).
  209. \fBAlias\fP can be abbreviated to \fBa\fP.
  210. .ip "\fBalternates\fP\ \ "
  211. If you have accounts on several machines, you may find it convenient
  212. to use the /usr/lib/aliases on all the machines except one to direct
  213. your mail to a single account.
  214. The
  215. .b alternates
  216. command is used to inform
  217. .i Mail
  218. that each of these other addresses is really
  219. .i you .
  220. .i Alternates
  221. takes a list of user names and remembers that they are all actually you.
  222. When you
  223. .b reply
  224. to messages that were sent to one of these alternate names,
  225. .i Mail
  226. will not bother to send a copy of the message to this other address (which
  227. would simply be directed back to you by the alias mechanism).
  228. If
  229. .i alternates
  230. is given no argument, it lists the current set of alternate names.
  231. .b Alternates
  232. is usually used in the .mailrc file.
  233. \fBAlternates\fP can be abbreviated to \fBalt\fP.
  234. .ip "\fBchdir\fP\ \ "
  235. The
  236. .b chdir
  237. command allows you to change your current directory.
  238. .b Chdir
  239. takes a single argument, which is taken to be the pathname of
  240. the directory to change to.  If no argument is given,
  241. .b chdir
  242. changes to your home directory.
  243. \fBChdir\fP can be abbreviated to \fBc\fP.
  244. .ip "\fBcopy\fP\ \ "
  245. The
  246. .b copy
  247. command does the same thing that
  248. .b save
  249. does, except that it does not mark the messages it is used on
  250. for deletion when you quit.
  251. \fBCopy\fP can be abbreviated to \fBco\fP.
  252. .ip "\fBdelete\fP\ \ "
  253. Deletes a list of messages.  Deleted messages can be reclaimed
  254. with the
  255. .b undelete
  256. command.
  257. \fBDelete\fP can be abbreviated to \fBd\fP.
  258. .ip "\fBdp\fP or \fBdt\fP\ \ "
  259. These
  260. commands delete the current message and print the next message.
  261. They are useful for quickly reading and disposing of mail.
  262. If there is no next message, \fImail\fP says ``at EOF.''
  263. .ip "\fBedit\fP\ \ "
  264. To edit individual messages using the text editor, the
  265. .b edit
  266. command is provided.  The
  267. .b edit
  268. command takes a list of messages as described under the
  269. .b type
  270. command and processes each by writing it into the file
  271. Message\c
  272. .i x
  273. where
  274. .i x
  275. is the message number being edited and executing the text editor on it.
  276. When you have edited the message to your satisfaction, write the message
  277. out and quit, upon which
  278. .i Mail
  279. will read the message back and remove the file.
  280. .b Edit
  281. can be abbreviated to
  282. .b e .
  283. .ip "\fBelse\fP\ \ "
  284. Marks the end of the then-part of an
  285. .b if
  286. statement and the beginning of the
  287. part to take effect if the condition of the
  288. .b if
  289. statement is false.
  290. .ip "\fBendif\fP\ \ "
  291. Marks the end of an
  292. .b if
  293. statement.
  294. .ip "\fBexit\fP or \fBxit\fP\ \ "
  295. Leave
  296. .i Mail
  297. without updating the system mailbox or the file your were reading.
  298. Thus, if you accidentally delete several messages, you can use
  299. .b exit
  300. to avoid scrambling your mailbox.
  301. \fBExit\fP can be abbreviated to \fBex\fP or \fBx\fP.
  302. .ip "\fBfile\fP\ \ "
  303. The same as
  304. .b folder .
  305. \fBFile\fP can be abbreviated to \fBfi\fP.
  306. .ip "\fBfolders\fP\ \ "
  307. List the names of the folders in your folder directory.
  308. .ip "\fBfolder\fP\ \ "
  309. The
  310. .b folder
  311. command switches to a new mail file or folder.  With no arguments, it
  312. tells you which file you are currently reading.  If you give
  313. it an argument, it will write out changes (such as deletions)
  314. you have made in the current file and read the new file.
  315. Some special conventions are recognized for the name:
  316. .(b
  317. .TS
  318. center;
  319. c c
  320. l a.
  321. Name    Meaning
  322. _
  323. #    Previous file read
  324. %    Your system mailbox
  325. %name    \fIName\fP's system mailbox
  326. &    Your ~/mbox file
  327. +folder    A file in your folder directory
  328. .TE
  329. .)b
  330. \fBFolder\fP can be abbreviated to \fBfo\fP.
  331. .ip "\fBfrom\fP\ \ "
  332. The
  333. .b from
  334. command takes a list of messages and prints out the header lines for each one;
  335. hence
  336. .(l
  337. from joe
  338. .)l
  339. is the easy way to display all the message headers from \*(lqjoe.\*(rq
  340. \fBFrom\fP can be abbreviated to \fBf\fP.
  341. .ip "\fBheaders\fP\ \ "
  342. When you start up
  343. .i Mail
  344. to read your mail, it lists the message headers that you have.
  345. These headers tell you who each message is from, when they were
  346. received, how many lines and characters each message is, and the
  347. .q "Subject:"
  348. header field of each message, if present.  In addition,
  349. .i Mail
  350. tags the message header of each message that has been the object
  351. of the
  352. .b preserve
  353. command with a
  354. .q P.
  355. Messages that have been
  356. .b saved
  357. or
  358. .b written
  359. are flagged with a
  360. .q *.
  361. Finally,
  362. .b deleted
  363. messages are not printed at all.  If you wish to reprint the current
  364. list of message headers, you can do so with the
  365. .b headers
  366. command.  The
  367. .b headers
  368. command (and thus the initial header listing)
  369. only lists the first so many message headers.
  370. The number of headers listed depends on the speed of your
  371. terminal.
  372. This can be overridden by specifying the number of headers you
  373. want with the
  374. .i window
  375. option.
  376. .i Mail
  377. maintains a notion of the current
  378. .q window
  379. into your messages for the purposes of printing headers.
  380. Use the
  381. .b z
  382. command to move forward and back a window.
  383. You can move
  384. .i Mail's
  385. notion of the current window directly to a particular message by
  386. using, for example,
  387. .(l
  388. headers 40
  389. .)l
  390. to move
  391. .i Mail's
  392. attention to the messages around message 40.
  393. If a ``+'' argument is given, then the next screenful of message headers is
  394. printed, and if a ``\-'' argument is given, the previous screenful of message
  395. headers is printed.
  396. \fBHeaders\fP can be abbreviated to \fBh\fP.
  397. .ip "\fBhelp\fP\ \ "
  398. Print a brief and usually out of date help message about the commands
  399. in
  400. .i Mail .
  401. The 
  402. .i man
  403. page for 
  404. .i mail
  405. is usually more up-to-date than either the help message or this manual.
  406. It is also a synonym for \fB?\fP.
  407. .ip "\fBhold\fP\ \ "
  408. Arrange to hold a list of messages in the system mailbox, instead
  409. of moving them to the file
  410. .i mbox
  411. in your home directory.  If you set the binary option
  412. .i hold ,
  413. this will happen by default.
  414. It does not override the \fBdelete\fP command.
  415. \fBHold\fP can be abbreviated to \fBho\fP.
  416. .ip "\fBif\fP\ \ "
  417. Commands in your
  418. .q .mailrc
  419. file can be executed conditionally depending on whether you are
  420. sending or receiving mail with the
  421. .b if
  422. command.  For example, you can do:
  423. .(l
  424. if receive
  425.     \fIcommands\fP...
  426. endif
  427. .)l
  428. An
  429. .b else
  430. form is also available:
  431. .(l
  432. if send
  433.     \fIcommands\fP...
  434. else
  435.     \fIcommands\fP...
  436. endif
  437. .)l
  438. Note that the only allowed conditions are
  439. .b receive
  440. and
  441. .b send .
  442. .ip "\fBignore\fP \ \ "
  443. .b N.B.:
  444. .i Ignore
  445. has been superseded by
  446. .i retain.
  447. .br
  448. Add the list of header fields named to the
  449. .i "ignore list" .
  450. Header fields in the ignore list are not printed on your
  451. terminal when you print a message.  This allows you to suppress
  452. printing of certain machine-generated header fields, such as
  453. .i Via
  454. which are not usually of interest.  The
  455. .b Type
  456. and
  457. .b Print
  458. commands can be used to print a message in its entirety, including
  459. ignored fields.
  460. If
  461. .b ignore
  462. is executed with no arguments, it lists the current set of ignored fields.
  463. .ip "\fBlist\fP\ \ "
  464. List the valid
  465. .i Mail
  466. commands.
  467. \fBList\fP can be abbreviated to \fBl\fP.
  468. .. .ip \fBlocal\fP
  469. .. Define a list of local names for this host. This command is useful
  470. .. when the host is known by more than one name. Names in the list
  471. .. may be qualified be the domain of the host. The first name on the local
  472. .. list is the
  473. .. .i distinguished
  474. .. name of the host.
  475. .. The names on the local list are used by
  476. .. .i Mail
  477. .. to decide which addresses are local to the host.
  478. .. For example:
  479. .. .(l
  480. .. local ucbarpa.BERKELEY.ARPA arpa.BERKELEY.ARPA \\
  481. ..     arpavax.BERKELEY.ARPA r.BERKELEY.ARPA \\
  482. ..     ucb-arpa.ARPA
  483. .. .)l
  484. .. From this list we see that
  485. .. .i "fred@ucbarpa.BERKELEY.ARPA",
  486. .. .i "harold@arpa.BERKELEY",
  487. .. and
  488. .. .i "larry@r"
  489. .. are all addresses of users on the local host.
  490. .. The
  491. .. .b local
  492. .. command is usually not used be general users since it is designed for
  493. .. local configuration; it is usually found in the file /usr/lib/Mail.rc.
  494. .ip "\fBmail\fP\ \ "
  495. Send mail to one or more people.  If you have the
  496. .i ask
  497. option set,
  498. .i Mail
  499. will prompt you for a subject to your message.  Then you
  500. can type in your message, using tilde escapes as described in
  501. section 4 to edit, print, or modify your message.  To signal your
  502. satisfaction with the message and send it, type control-d at the
  503. beginning of a line, or a . alone on a line if you set the option
  504. .i dot .
  505. To abort the message, type two interrupt characters (\s-2RUBOUT\s0
  506. by default) in a row or use the
  507. .b ~q
  508. escape.
  509. The \fBmail\fP command can be abbreviated to \fBm\fP.
  510. .ip "\fBmbox\fP\ \ "
  511. Indicate that a list of messages be sent to
  512. .i mbox
  513. in your home directory when you quit.  This is the default
  514. action for messages if you do
  515. .i not
  516. have the
  517. .i hold
  518. option set.
  519. .ip "\fBnext\fP or \fB+\fP\ \ "
  520. The
  521. .b next
  522. command goes to the next message and types it.  If given a message list,
  523. .b next
  524. goes to the first such message and types it.  Thus,
  525. .(l
  526. next root
  527. .)l
  528. goes to the next message sent by
  529. .q root
  530. and types it.  The
  531. .b next
  532. command can be abbreviated to simply a newline, which means that one
  533. can go to and type a message by simply giving its message number or
  534. one of the magic characters
  535. .q "^"
  536. .q "."
  537. or
  538. .q "$".
  539. Thus,
  540. .(l
  541. \&.
  542. .)l
  543. prints the current message and
  544. .(l
  545. 4
  546. .)l
  547. prints message 4, as described previously.
  548. \fBNext\fP can be abbreviated to \fBn\fP.
  549. .ip "\fBpreserve\fP\ \ "
  550. Same as
  551. .b hold .
  552. Cause a list of messages to be held in your system mailbox when you quit.
  553. \fBPreserve\fP can be abbreviated to \fBpre\fP.
  554. .ip "\fBprint\fP\ \ "
  555. Print the specified messages. If the
  556. .b crt
  557. variable is set, messages longer than the number of lines it indicates
  558. are paged through the command specified by the \fBPAGER\fP variable.
  559. The \fBprint\fP command can be abbreviated to \fBp\fP.
  560. .ip "\fBquit\fP\ \ "
  561. Terminates the session, saving all undeleted, unsaved and unwritten messages 
  562. in the user's \fImbox\fP file in their login directory
  563. (messages marked as having been read), preserving all
  564. messages marked with \fBhold\fP or \fBpreserve\fP or never referenced
  565. in their system mailbox.
  566. Any messages that were deleted, saved, written or saved to \fImbox\fP are
  567. removed from their system mailbox.
  568. If new mail has arrived during the session, the message
  569. ``You have new mail'' is given.  If given while editing a mailbox file
  570. with the \fB\-f\fP flag, then the edit file is rewritten.
  571. A return to the Shell is effected, unless the rewrite of edit file fails,
  572. in which case the user can escape with the \fBexit\fP command.
  573. \fBQuit\fP can be abbreviated to \fBq\fP.
  574. .ip "\fBreply\fP or \fBrespond\fP\ \ "
  575. Frame a reply to a single message.
  576. The reply will be sent to the
  577. person who sent you the message (to which you are replying), plus all
  578. the people who received the original message, except you.  You can
  579. add people using the \fB~t\fP, \fB~c\fP and \fB~b\fP
  580. tilde escapes.  The subject in your reply is formed by prefacing the
  581. subject in the original message with
  582. .q "Re:"
  583. unless it already began thus.
  584. If the original message included a
  585. .q "reply-to"
  586. header field, the reply will go
  587. .i only
  588. to the recipient named by
  589. .q "reply-to."
  590. You type in your message using the same conventions available to you
  591. through the
  592. .b mail
  593. command.
  594. The \fBreply\fP (and \fBrespond\fP) command can be abbreviated to \fBr\fP.
  595. .ip "\fBretain\fP\ \ "
  596. Add the list of header fields named to the \fIretained list\fP.
  597. Only the header fields in the retain list
  598. are shown on your terminal when you print a message.
  599. All other header fields are suppressed.
  600. The
  601. .b Type
  602. and
  603. .b Print
  604. commands can be used to print a message in its entirety.
  605. If
  606. .b retain
  607. is executed with no arguments, it lists the current set of
  608. retained fields.
  609. .ip "\fBsave\fP\ \ "
  610. It is often useful to be able to save messages on related topics
  611. in a file.  The
  612. .b save
  613. command gives you the ability to do this.  The
  614. .b save
  615. command takes as an argument a list of message numbers, followed by
  616. the name of the file in which to save the messages.  The messages
  617. are appended to the named file, thus allowing one to keep several
  618. messages in the file, stored in the order they were put there.
  619. The filename in quotes, followed by the line
  620. count and character count is echoed on the user's terminal.
  621. An example of the
  622. .b save
  623. command relative to our running example is:
  624. .(l
  625. s 1 2 tuitionmail
  626. .)l
  627. .b Saved
  628. messages are not automatically saved in
  629. .i mbox
  630. at quit time, nor are they selected by the
  631. .b next
  632. command described above, unless explicitly specified.
  633. \fBSave\fP can be abbreviated to \fBs\fP.
  634. .ip "\fBset\fP\ \ "
  635. Set an option or give an option a value.  Used to customize
  636. .i Mail .
  637. Section 5.3 contains a list of the options.  Options can be
  638. .i binary ,
  639. in which case they are
  640. .i on
  641. or
  642. .i off ,
  643. or
  644. .i valued .
  645. To set a binary option
  646. .i option
  647. .i on ,
  648. do
  649. .(l
  650. set option
  651. .)l
  652. To give the valued option
  653. .i option
  654. the value
  655. .i value ,
  656. do
  657. .(l
  658. set option=value
  659. .)l
  660. There must be no space before or after the ``='' sign.
  661. If no arguments are given, all variable values are printed.
  662. Several options can be specified in a single
  663. .b set
  664. command.
  665. \fBSet\fP can be abbreviated to \fBse\fP.
  666. .ip "\fBshell\fP\ \ "
  667. The
  668. .b shell
  669. command allows you to
  670. escape to the shell.
  671. .b Shell
  672. invokes an interactive shell and allows you to type commands to it.
  673. When you leave the shell, you will return to
  674. .i Mail .
  675. The shell used is a default assumed by
  676. .i Mail ;
  677. you can override this default by setting the valued option
  678. .q SHELL,
  679. eg:
  680. .(l
  681. set SHELL=/bin/csh
  682. .)l
  683. \fBShell\fP can be abbreviated to \fBsh\fP.
  684. .ip "\fBsize\fP\ \ "
  685. Takes a message list and prints out the size in characters of each
  686. message.
  687. .ip "\fBsource\fP\ \ "
  688. The
  689. .b source
  690. command reads
  691. .i mail
  692. commands from a file.  It is useful when you are trying to fix your
  693. .q .mailrc
  694. file and you need to re-read it.
  695. \fBSource\fP can be abbreviated to \fBso\fP.
  696. .ip "\fBtop\fP\ \ "
  697. The
  698. .b top
  699. command takes a message list and prints the first five lines
  700. of each addressed message.
  701. If you wish, you can change the number of lines that
  702. .b top
  703. prints out by setting the valued option
  704. .q "toplines."
  705. On a CRT terminal,
  706. .(l
  707. set toplines=10
  708. .)l
  709. might be preferred.
  710. \fBTop\fP can be abbreviated to \fBto\fP.
  711. .ip "\fBtype\fP\ \ "
  712. Same as \fBprint\fP.
  713. Takes a message list and types out each message on the terminal.
  714. The \fBtype\fP command can be abbreviated to \fBt\fP.
  715. .ip "\fBundelete\fP \ \"
  716. Takes a message list and marks each message as \fInot\fP
  717. being deleted.
  718. \fBUndelete\fP can be abbreviated to \fBu\fP.
  719. .ip "\fBunread\fP\ \ "
  720. Takes a message list and marks each message as
  721. .i not
  722. having been read.
  723. \fBUnread\fP can be abbreviated to \fBU\fP.
  724. .ip "\fBunset\fP\ \ "
  725. Takes a list of option names and discards their remembered values;
  726. the inverse of \fBset\fP .
  727. .ip "\fBvisual\fP\ \ "
  728. It is often useful to be able to invoke one of two editors,
  729. based on the type of terminal one is using.  To invoke
  730. a display oriented editor, you can use the
  731. .b visual
  732. command.  The operation of the
  733. .b visual
  734. command is otherwise identical to that of the
  735. .b edit
  736. command.
  737. .ne 2v+\n(psu
  738. .sp \n(psu
  739. Both the
  740. .b edit
  741. and
  742. .b visual
  743. commands assume some default text editors.  These default editors
  744. can be overridden by the valued options
  745. .q EDITOR
  746. and
  747. .q VISUAL
  748. for the standard and screen editors.  You might want to do:
  749. .(l
  750. set EDITOR=/usr/ucb/ex VISUAL=/usr/ucb/vi
  751. .)l
  752. \fBVisual\fP can be abbreviated to \fBv\fP.
  753. .ip "\fBwrite\fP\ \ "
  754. The
  755. .b save
  756. command always writes the entire message, including the headers,
  757. into the file.  If you want to write just the message itself, you
  758. can use the
  759. .b write
  760. command.  The
  761. .b write
  762. command has the same syntax as the
  763. .b save
  764. command, and can be abbreviated to simply
  765. .b w .
  766. Thus, we could write the second message by doing:
  767. .(l
  768. w 2 file.c
  769. .)l
  770. As suggested by this example, the
  771. .b write
  772. command is useful for such tasks as sending and receiving
  773. source program text over the message system.
  774. The filename in quotes, followed by the line
  775. count and character count is echoed on the user's terminal.
  776. .ip "\fBz\fP\ \ "
  777. .i Mail
  778. presents message headers in windowfuls as described under
  779. the
  780. .b headers
  781. command.
  782. You can move
  783. .i Mail's
  784. attention forward to the next window by giving the
  785. .(l
  786. z+
  787. .)l
  788. command.  Analogously, you can move to the previous window with:
  789. .(l
  790. z\-
  791. .)l
  792. .sh 2 "Custom options"
  793. .pp
  794. Throughout this manual, we have seen examples of binary and valued options.
  795. This section describes each of the options in alphabetical order, including
  796. some that you have not seen yet.
  797. To avoid confusion, please note that the options are either
  798. all lower case letters or all upper case letters.  When I start a sentence
  799. such as:
  800. .q "Ask"
  801. causes
  802. .i Mail
  803. to prompt you for a subject header,
  804. I am only capitalizing
  805. .q ask
  806. as a courtesy to English.
  807. .ip "\fBEDITOR\fP\ \ "
  808. The valued option
  809. .q EDITOR
  810. defines the pathname of the text editor to be used in the
  811. .b edit
  812. command and ~e.  If not defined, a standard editor is used.
  813. .ip "\fBPAGER\fP\ \ "
  814. Pathname of the program to use for paginating output when
  815. it exceeds \fIcrt\fP lines.
  816. A default paginator is used if this option is not defined.
  817. .ip "\fBSHELL\fP\ \ "
  818. The valued option
  819. .q SHELL
  820. gives the path name of your shell.  This shell is used for the
  821. .b !
  822. command and ~! escape.  In addition, this shell expands
  823. file names with shell metacharacters like * and ? in them.
  824. .ip "\fBVISUAL\fP\ \ "
  825. The valued option
  826. .q VISUAL
  827. defines the pathname of the screen editor to be used in the
  828. .b visual
  829. command
  830. and ~v escape.  A standard screen editor is used if you do not define one.
  831. .ip "\fBappend\fP\ \ "
  832. The
  833. .q append
  834. option is binary and
  835. causes messages saved in
  836. .i mbox
  837. to be appended to the end rather than prepended.
  838. Normally, \fIMail\fP will put messages in \fImbox\fP
  839. in the same order that the system puts messages in your system mailbox.
  840. By setting
  841. .q append,
  842. you are requesting that
  843. .i mbox
  844. be appended to regardless.  It is in any event quicker to append.
  845. .ip "\fBask\fP\ \ "
  846. .q "Ask"
  847. is a binary option which
  848. causes
  849. .i Mail
  850. to prompt you for the subject of each message you send.
  851. If you respond with simply a newline, no subject field will be sent.
  852. .ip "\fBaskcc\fP\ \ "
  853. .q Askcc
  854. is a binary option which
  855. causes you to be prompted for additional carbon copy recipients at the
  856. end of each message.  Responding with a newline shows your
  857. satisfaction with the current list.
  858. .ip "\fBautoprint\fP\ \ "
  859. .q Autoprint
  860. is a binary option which
  861. causes the
  862. .b delete
  863. command to behave like
  864. .b dp
  865. \*- thus, after deleting a message, the next one will be typed
  866. automatically.  This is useful when quickly scanning and deleting
  867. messages in your mailbox.
  868. .ip "\fBcrt\fP \ \ "
  869. The valued option
  870. .I crt
  871. is used as a threshold to determine how long a message must
  872. be before
  873. .b PAGER
  874. is used to read it.
  875. .ip "\fBdebug\fP \ \ "
  876. The binary option
  877. .q debug
  878. causes debugging information to be displayed. Use of this
  879. option is the same as using the \fB\-d\fP command line flag.
  880. .ip "\fBdot\fP\ \ "
  881. .q Dot
  882. is a binary option which, if set, causes
  883. .i Mail
  884. to interpret a period alone on a line as the terminator
  885. of the message you are sending.
  886. .ip "\fBescape\fP\ \ "
  887. To allow you to change the escape character used when sending
  888. mail, you can set the valued option
  889. .q escape.
  890. Only the first character of the
  891. .q escape
  892. option is used, and it must be doubled if it is to appear as
  893. the first character of a line of your message.  If you change your escape
  894. character, then ~ loses all its special meaning, and need no longer be doubled
  895. at the beginning of a line.
  896. .ip "\fBfolder\fP\ \ "
  897. The name of the directory to use for storing folders of messages.
  898. If this name begins with a `/'
  899. .i Mail
  900. considers it to be an absolute pathname; otherwise, the folder directory
  901. is found relative to your home directory.
  902. .ip "\fBhold\fP\ \ "
  903. The binary option
  904. .q hold
  905. causes messages that have been read but not manually dealt with
  906. to be held in the system mailbox. This prevents such messages from
  907. being automatically swept into your \fImbox\fP file.
  908. .ip "\fBignore\fP\ \ "
  909. The binary option
  910. .q ignore
  911. causes \s-2RUBOUT\s0 characters from your terminal to be ignored and echoed
  912. as @'s while you are sending mail.  \s-2RUBOUT\s0 characters retain their
  913. original meaning in
  914. .i Mail
  915. command mode.
  916. Setting the
  917. .q ignore
  918. option is equivalent to supplying the
  919. .b \-i
  920. flag on the command line as described in section 6.
  921. .ip "\fBignoreeof\fP\ \ "
  922. An option related to
  923. .q dot
  924. is
  925. .q ignoreeof
  926. which makes
  927. .i Mail
  928. refuse to accept a control\-d as the end of a message.
  929. .q Ignoreeof
  930. also applies to
  931. .i Mail
  932. command mode.
  933. .ip "\fBkeep\fP\ \ "
  934. The
  935. .q keep
  936. option causes
  937. .i Mail
  938. to truncate your system mailbox instead of deleting it when it
  939. is empty.  This is useful if you elect to protect your mailbox, which
  940. you would do with the shell command:
  941. .(l
  942. chmod 600 /usr/spool/mail/yourname
  943. .)l
  944. where
  945. .i yourname
  946. is your login name.  If you do not do this, anyone can probably read
  947. your mail, although people usually don't.
  948. .ip "\fBkeepsave\fP\ \ "
  949. When you
  950. .b save
  951. a message,
  952. .i Mail
  953. usually discards it when you
  954. .b quit .
  955. To retain all saved messages, set the
  956. .q keepsave
  957. option.
  958. .ip "\fBmetoo\fP\ \ "
  959. When sending mail to an alias,
  960. .i Mail
  961. makes sure that if you are included in the alias, that mail will not
  962. be sent to you.  This is useful if a single alias is being used by
  963. all members of the group.  If however, you wish to receive a copy of
  964. all the messages you send to the alias, you can set the binary option
  965. .q metoo.
  966. .ip "\fBnoheader\fP\ \ "
  967. The binary option
  968. .q noheader
  969. suppresses the printing of the version and headers when
  970. .i Mail
  971. is first invoked. Setting this option is the same as using
  972. .b \-N
  973. on the command line.
  974. .ip "\fBnosave\fP\ \ "
  975. Normally,
  976. when you abort a message with two \s-2RUBOUTs\s0,
  977. .i Mail
  978. copies the partial letter to the file
  979. .q dead.letter
  980. in your home directory.  Setting the binary option
  981. .q nosave
  982. prevents this.
  983. .ip "\fBReplyall\fP\ \ "
  984. Reverses the sense of
  985. .i reply
  986. and
  987. .i Reply
  988. commands.
  989. .ip "\fBquiet\fP\ \ "
  990. The binary option
  991. .q quiet
  992. suppresses the printing of the version when
  993. .i Mail
  994. is first invoked,
  995. as well as printing the for example
  996. .q "Message 4:"
  997. from the
  998. .b type
  999. command.
  1000. .ip "\fBrecord\fP\ \ "
  1001. If you love to keep records, then the
  1002. valued option
  1003. .q record
  1004. can be set to the name of a file to save your outgoing mail.
  1005. Each new message you send is appended to the end of the file.
  1006. .ip "\fBscreen\fP\ \ "
  1007. When
  1008. .i Mail
  1009. initially prints the message headers, it determines the number to
  1010. print by looking at the speed of your terminal.  The faster your
  1011. terminal, the more it prints.
  1012. The valued option
  1013. .q screen
  1014. overrides this calculation and
  1015. specifies how many message headers you want printed.
  1016. This number is also used for scrolling with the
  1017. .b z
  1018. command.
  1019. .ip "\fBsendmail\fP\ \ "
  1020. To use an alternate mail delivery system, set the
  1021. .q sendmail
  1022. option to the full pathname of the program to use.  Note:  this is not
  1023. for everyone!  Most people should use the default delivery system.
  1024. .ip "\fBtoplines\fP\ \ "
  1025. The valued option
  1026. .q toplines
  1027. defines the number of lines that the
  1028. .q top
  1029. command will print out instead of the default five lines.
  1030. .ip "\fBverbose\fP\ \ "
  1031. The binary option "verbose" causes
  1032. .i Mail
  1033. to invoke sendmail with the 
  1034. .b \-v
  1035. flag, which causes it to go into verbose mode and announce expansion
  1036. of aliases, etc. Setting the "verbose" option is equivalent to
  1037. invoking
  1038. .i Mail
  1039. with the
  1040. .b \-v
  1041. flag as described in section 6.
  1042.