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