Commit | Line | Data |
---|---|---|
e2a9a8d6 KD |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
5 | .\" @(#)mail6.nr 4.1 (Berkeley) %G% | |
6 | .\" | |
7 | .sh 1 "Additional commands" | |
8 | .pp | |
9 | This section describes additional Mail commands available when | |
10 | receiving mail. | |
11 | .pp | |
12 | The | |
13 | .b next | |
14 | command goes to the next message and types it. If given a message list, | |
15 | .b next | |
16 | goes to the first such message and types it. Thus, | |
17 | .(l | |
18 | type root | |
19 | .)l | |
20 | goes to the next message sent by \*(lqroot\*(rq and types it. | |
21 | The | |
22 | .b next | |
23 | command can be abbreviated to simply a newline, which means that one | |
24 | can go to and type a message by simply giving its message number or | |
25 | one of the magic characters | |
26 | .q "\(ua" | |
27 | .q "." | |
28 | or | |
29 | .q "$". | |
30 | Thus, | |
31 | .(l | |
32 | \&. | |
33 | .)l | |
34 | prints the current message and | |
35 | .(l | |
36 | 4 | |
37 | .)l | |
38 | prints message 4. | |
39 | .pp | |
40 | The | |
41 | .rb \- | |
42 | command goes to the previous message and prints it. The | |
43 | .rb \- | |
44 | command may be given a decimal number | |
45 | .i n | |
46 | as an argument, in which case the | |
47 | .i n th | |
48 | previous message is gone to and printed. | |
49 | .pp | |
50 | The | |
51 | .b save | |
52 | command allows you to save messages received from others on a file | |
53 | other than | |
54 | .i mbox. | |
55 | Its syntax varies somewhat from the other commands which accept | |
56 | a message list in that the final word on the command line is taken to be | |
57 | the file on which to save the messages. The named messages are | |
58 | appended to the file (which is created if it did not already exist) | |
59 | and are marked as saved. Saved messages are not automatically saved in | |
60 | .i mbox | |
61 | at quit time, nor are they selected by the | |
62 | .b next | |
63 | command described above, unless explicitly specified. The | |
64 | .b save | |
65 | command provides a facility for saving messages pertaining to a particular | |
66 | subject or from a particular person in a special place. | |
67 | .pp | |
68 | The | |
69 | .b undelete | |
70 | command causes a message which had been deleted previously to regain | |
71 | its initial status. Only messages which are already deleted may be | |
72 | undeleted. This command may be abbreviated to | |
73 | .b u . | |
74 | .pp | |
75 | The | |
76 | .b preserve | |
77 | command takes a message list and marks each message therein so that it | |
78 | will be saved in your system mailbox instead of being deleted or | |
79 | saved in | |
80 | .i mbox | |
81 | when you quit. This is useful for saving messages of importance that | |
82 | you want to see again, or messages not intended for you if you are sharing | |
83 | a login name. | |
84 | .pp | |
85 | Often, one wants to deal with a message by responding to its author right | |
86 | then and there. The | |
87 | .b reply | |
88 | command is useful for this purpose: it takes a message list and sends mail | |
89 | to the authors of those messages. The message is collected in the usual | |
90 | fashion by reading up to an EOT. All of the tilde escapes described in section | |
91 | three will work in | |
92 | .b reply . | |
93 | Additionally, if there are header fields | |
94 | in the message being replied to, this information is copied into the | |
95 | new message. The | |
96 | .b reply | |
97 | command can be abbreviated to | |
98 | .b r . | |
99 | .pp | |
100 | In order to simply mail to a user inside of Mail, the | |
101 | .b mail | |
102 | command is provided. This sends mail in the manner described for the | |
103 | .b reply | |
104 | command above, except that the user supplies a list of recipient login | |
105 | names and distribution groups. All of the tilde escapes described in | |
106 | section three will work in | |
107 | .b mail . | |
108 | The | |
109 | .b mail | |
110 | command may be abbreviated to | |
111 | .b m . | |
112 | .pp | |
113 | In order to edit individual messages using the text editor, the | |
114 | .b edit | |
115 | command is provided. The | |
116 | .b edit | |
117 | command takes a list of message as described under the | |
118 | .b type | |
119 | command and processes each by writing it into the file | |
120 | Message\c | |
121 | .i x | |
122 | where | |
123 | .i x | |
124 | is the message number being edited and executing the text editor on it. | |
125 | When you have edited the message to your satisfaction, write the message | |
126 | out and quit, upon which Mail will read the message back and remove the file. | |
127 | .b Edit | |
128 | may be abbreviated to | |
129 | .b e . | |
130 | .pp | |
131 | It is often useful to be able to invoke one of two editors, | |
132 | based on the type of terminal one is using. To invoke | |
133 | a display oriented editor, you can use the | |
134 | .b visual | |
135 | command. The operation of the | |
136 | .b visual | |
137 | command is otherwise identical to that of the | |
138 | .b edit | |
139 | command. | |
140 | .pp | |
141 | When Mail is invoked to receive mail, it prints out the message header | |
142 | for each message. In order to reprint the headers for remaining messages | |
143 | (those which haven't been deleted), you may type the | |
144 | .b headers | |
145 | command. Deleted messages do not appear in the listing, saved messages are | |
146 | flagged with a | |
147 | .q "*" | |
148 | and preserved messages are flagged with a | |
149 | \*(lqP.\*(rq | |
150 | .pp | |
151 | The | |
152 | .b from | |
153 | command takes a list of messages and prints out the header lines for each one; | |
154 | hence | |
155 | .(l | |
156 | from joe | |
157 | .)l | |
158 | is the easy way to display all the message headers from \*(lqjoe.\*(rq | |
159 | .pp | |
160 | The | |
161 | .b top | |
162 | command takes a message list and prints the first five lines | |
163 | of each addressed message. It may be abbreviated to | |
164 | .b to . | |
165 | .pp | |
166 | The | |
167 | .b dt | |
168 | command deletes the current message and prints the next message. | |
169 | It is useful for quickly reading and disposing of mail. |