annotate man/rmail.texi @ 162:4de2936b4e77

Added tag r20-3b7 for changeset 28f395d8dc7a
author cvs
date Mon, 13 Aug 2007 09:42:28 +0200
parents 376386a54a3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 \input texinfo @comment -*-Texinfo-*-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 @setfilename ../info/rmail.info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @settitle Rmail User's Manual
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 @iftex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 @finalout
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 @end iftex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 @c @setchapternewpage odd % For book style double sided manual.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 @c @smallbook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 @tex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 \overfullrule=0pt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 %\global\baselineskip 30pt % For printing in double spaces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 @end tex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 @ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 This file documents the Rmail mail reader.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 Copyright (C) 1991 Free Software Foundation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 Permission is granted to make and distribute verbatim copies of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 this manual provided the copyright notice and this permission notice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 are preserved on all copies.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 @ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 Permission is granted to process this file through Tex and print the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 results, provided the printed document carries copying permission
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 notice identical to this one except for the removal of this paragraph
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 (this paragraph not being relevant to the printed manual).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 @end ignore
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 @end ifinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 @c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 @titlepage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 @sp 6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 @center @titlefont{Rmail User's Manual}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 @sp 10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 @center Free Software Foundation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 @page
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 @vskip 0pt plus 1filll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 Copyright @copyright{} 1991 Free Software Foundation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 Permission is granted to make and distribute verbatim copies of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 this manual provided the copyright notice and this permission notice
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 are preserved on all copies.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 @end titlepage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 @page
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 @node Top, Rmail Scrolling,, (DIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 NOTE: The recommended mail reader in XEmacs is VM, which provides more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 flexibility than Rmail and stores mail in standard Unix-mail-format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 folders rather than in a special format. VM comes with its own
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 manual, included standard with XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 XEmacs also provides a sophisticated and comfortable front-end to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 MH mail-processing system, called @samp{mh-e}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 This manual documents the Rmail mail reader under Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 Rmail is an Emacs subsystem for reading and disposing of mail that you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 receive. Rmail stores mail messages in files called Rmail files. You read
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 the messages in an Rmail file in a special major mode, Rmail mode,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 which redefines most letters to run commands for managing mail. To enter
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 Rmail, type @kbd{M-x rmail}. This reads your primary mail file, merges
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 new mail in from your inboxes, displays the first new message, and lets
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 you begin reading.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 @cindex primary mail file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 Using Rmail in the simplest fashion, you have one Rmail file,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 @file{~/RMAIL}, in which all of your mail is saved. It is called your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 @dfn{primary mail file}. You can also copy messages into other Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 files and then edit those files with Rmail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 Rmail displays only one message at a time. It is called the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 @dfn{current message}. Rmail mode's special commands can move to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 another message, delete the message, copy the message into another file,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 or send a reply.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 @cindex message number
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 Within the Rmail file, messages are arranged sequentially in order
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 of receipt. They are also assigned consecutive integers as their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 @dfn{message numbers}. The number of the current message is displayed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 in Rmail's mode line, followed by the total number of messages in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 file. You can move to a message by specifying its message number
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 using the @kbd{j} key (@pxref{Rmail Motion}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 @kindex s (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 @findex rmail-save
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 Following the usual conventions of Emacs, changes in an Rmail file become
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 permanent only when the file is saved. You can do this with @kbd{s}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 (@code{rmail-save}), which also expunges deleted messages from the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 first (@pxref{Rmail Deletion}). To save the file without expunging, use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 @kbd{C-x C-s}. Rmail saves the Rmail file automatically when moving new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 mail from an inbox file (@pxref{Rmail Inbox}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 @kindex q (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 @findex rmail-quit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 You can exit Rmail with @kbd{q} (@code{rmail-quit}); this expunges and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 saves the Rmail file and then switches to another buffer. However, there is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 no need to `exit' formally. If you switch from Rmail to editing in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 other buffers, and never happen to switch back, you have exited. Just
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 make sure to save the Rmail file eventually (like any other file you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 have changed). @kbd{C-x s} is a good enough way to do this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 * Scroll: Rmail Scrolling. Scrolling through a message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 * Motion: Rmail Motion. Moving to another message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 * Deletion: Rmail Deletion. Deleting and expunging messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 * Inbox: Rmail Inbox. How mail gets into the Rmail file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 * Files: Rmail Files. Using multiple Rmail files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 * Output: Rmail Output. Copying message out to files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 * Labels: Rmail Labels. Classifying messages by labeling them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 * Summary: Rmail Summary. Summaries show brief info on many messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 * Reply: Rmail Reply. Sending replies to messages you are viewing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 * Editing: Rmail Editing. Editing message text and headers in Rmail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 * Digest: Rmail Digest. Extracting the messages from a digest message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 @node Rmail Scrolling, Rmail Motion, Top, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 @chapter Scrolling Within a Message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 When Rmail displays a message that does not fit on the screen, you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 have to scroll through it. You could use @kbd{C-v}, @kbd{M-v},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 and @kbd{M-<}, but scrolling is so frequent in Rmail that it deserves to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 easier to type.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 @item @key{SPC}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 Scroll forward (@code{scroll-up}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 @item @key{DEL}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 Scroll backward (@code{scroll-down}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 @item .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 Scroll to start of message (@code{rmail-beginning-of-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 @kindex SPC (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 @kindex DEL (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 Since the most common thing to do while reading a message is to scroll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 through it by screenfuls, Rmail makes @key{SPC} and @key{DEL} synonyms of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 @kbd{C-v} (@code{scroll-up}) and @kbd{M-v} (@code{scroll-down})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 @kindex . (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 @findex rmail-beginning-of-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 The command @kbd{.} (@code{rmail-beginning-of-message}) scrolls back to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 beginning of a selected message. This is not quite the same as @kbd{M-<}:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 first, it does not set the mark; secondly, it resets the buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 boundaries to the current message if you have changed them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 @node Rmail Motion, Rmail Deletion, Rmail Scrolling, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 @chapter Moving Among Messages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 The most basic thing to do with a message is to read it. The way to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 do this in Rmail is to make the message current. You can make any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 message current, given its message number, by using the @kbd{j} command, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 people most often move sequentially through the file, since this is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 order of receipt of messages. When you enter Rmail, you are positioned
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 at the first new message (new messages are those received after you last
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 used Rmail), or at the last message if there are no new messages this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 time. Move forward to see other new messages if there are any; move
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 backward to re-examine old messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 @item n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 Move to the next non-deleted message, skipping any intervening deleted @*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 messages (@code{rmail-next-undeleted-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 @item p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 Move to the previous non-deleted message @*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (@code{rmail-previous-undeleted-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 @item M-n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 Move to the next message, including deleted messages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 (@code{rmail-next-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 @item M-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 Move to the previous message, including deleted messages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (@code{rmail-previous-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 @item j
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 Move to the first message. With argument @var{n}, move to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 message number @var{n} (@code{rmail-show-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 @item >
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 Move to the last message (@code{rmail-last-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 @item M-s @var{regexp} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 Move to the next message containing a match for @var{regexp}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (@code{rmail-search}). If @var{regexp} is empty, the last regexp used is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 used again.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 @item - M-s @var{regexp} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 Move to the previous message containing a match for @var{regexp}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 If @var{regexp} is empty, the last regexp used is used again.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 @kindex n (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 @kindex p (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 @kindex M-n (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 @kindex M-p (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 @findex rmail-next-undeleted-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 @findex rmail-previous-undeleted-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 @findex rmail-next-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 @findex rmail-previous-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 To move among messages in Rmail, you can use @kbd{n} and @kbd{p}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 These keys move through the messages sequentially but skip over deleted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 messages, which is usually what you want to do. Their command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 definitions are named @code{rmail-next-undeleted-message} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 @code{rmail-previous-undeleted-message}. If you do not want to skip
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 deleted messages---for example, if you want to move to a message to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 undelete it---use the variants @kbd{M-n} (@code{rmail-next-message}) and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 @kbd{M-p} (@code{rmail-previous-message}). A numeric argument to any of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 these commands serves as a repeat count.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 In Rmail, you can specify a numeric argument by just typing the digits.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 It is not necessary to type @kbd{C-u} first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 @kindex M-s (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 @findex rmail-search
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 The @kbd{M-s} (@code{rmail-search}) command is Rmail's version of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 search. The usual incremental search command @kbd{C-s} works in Rmail,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 but searches only within the current message. The purpose of @kbd{M-s}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 is to search for another message. It reads a regular expression
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 non-incrementally, then starts searching at the beginning of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 following message for a match. The message containing the match is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 selected.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 To search backward in the file for another message, give @kbd{M-s} a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 negative argument. In Rmail you can do this with @kbd{- M-s}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 It is also possible to search for a message based on labels.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 @xref{Rmail Labels}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 @kindex j (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 @kindex > (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 @findex rmail-show-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 @findex rmail-last-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 To move to a message specified by absolute message number, use @kbd{j}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 (@code{rmail-show-message}) with the message number as argument. With
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 no argument, @kbd{j} selects the first message. @kbd{>}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 (@code{rmail-last-message}) selects the last message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 @node Rmail Deletion, Rmail Inbox, Rmail Motion, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 @chapter Deleting Messages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 @cindex deletion (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 When you no longer need to keep a message, you can @dfn{delete} it. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 flags it as ignorable, and some Rmail commands will pretend it is no longer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 present, but it still has its place in the Rmail file and still has its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 message number.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 @cindex expunging (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 @dfn{Expunging} the Rmail file actually removes the deleted messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 The remaining messages are renumbered consecutively. Expunging is the only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 action that changes the message number of any message, except for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 undigestifying (@pxref{Rmail Digest}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 @item d
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 Delete the current message and move to the next non-deleted message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 (@code{rmail-delete-forward}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 @item C-d
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 Delete the current message and move to the previous non-deleted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 message (@code{rmail-delete-backward}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 @item u
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 Undelete the current message, or move back to a deleted message and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 undelete it (@code{rmail-undelete-previous-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 @item e
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 @itemx x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 Expunge the Rmail file (@code{rmail-expunge}). These two
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 commands are synonyms.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 @kindex d (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 @kindex C-d (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 @findex rmail-delete-forward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 @findex rmail-delete-backward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 There are two Rmail commands for deleting messages. Both delete the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 current message and select another message. @kbd{d}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 (@code{rmail-delete-forward}) moves to the following message, skipping
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 messages already deleted, while @kbd{C-d} (@code{rmail-delete-backward})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 moves to the previous non-deleted message. If there is no non-deleted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 message to move to in the specified direction, the message that was just
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 deleted remains current.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 @cindex undeletion (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 @kindex e (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 @findex rmail-expunge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 To make all deleted messages disappear from the Rmail file, type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 @kbd{e} (@code{rmail-expunge}). Until you do this, you can still
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 @dfn{undelete} the deleted messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286 @kindex u (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 @findex rmail-undelete-previous-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 To undelete, type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 @kbd{u} (@code{rmail-undelete-previous-message}), which cancels the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 effect of a @kbd{d} command (usually). It undeletes the current message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 if the current message is deleted. Otherwise it moves backward to previous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292 messages until a deleted message is found, and undeletes that message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 You can usually undo a @kbd{d} with a @kbd{u} because the @kbd{u}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 moves back to and undeletes the message that the @kbd{d} deleted. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 does not work when the @kbd{d} skips a few already-deleted messages that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 follow the message being deleted; in that case the @kbd{u} command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 undeletes the last of the messages that were skipped. There is no clean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 way to avoid this problem. However, by repeating the @kbd{u} command,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 you can eventually get back to the message you intended to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 undelete. You can also reach that message with @kbd{M-p} commands and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302 then type @kbd{u}.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 A deleted message has the @samp{deleted} attribute, and as a result
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 @samp{deleted} appears in the mode line when the current message is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 deleted. In fact, deleting or undeleting a message is nothing more than
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 adding or removing this attribute. @xref{Rmail Labels}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 @node Rmail Inbox, Rmail Files, Rmail Deletion, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 @chapter Rmail Files and Inboxes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 @cindex inbox file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 Unix places your incoming mail in a file called your @dfn{inbox}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 When you start up Rmail, it copies the new messages from your inbox into
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 your primary mail file, an Rmail file which also contains other messages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 saved from previous Rmail sessions. In this file, you actually
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 read the mail with Rmail. The operation is called @dfn{getting new mail}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 You can repeat it at any time using the @kbd{g} key in Rmail. The inbox
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 file name is @file{/usr/spool/mail/@var{username}} in Berkeley Unix,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 @file{/usr/mail/@var{username}} in system V.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 There are two reason for having separate Rmail files and inboxes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 @enumerate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 The format in which Unix delivers the mail in the inbox is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 adequate for Rmail mail storage. It has no way to record attributes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 (such as @samp{deleted}) or user-specified labels; it has no way to record
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 old headers and reformatted headers; it has no way to record cached
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 summary line information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 It is very cumbersome to access an inbox file without danger of losing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 mail, because it is necessary to interlock with mail delivery.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 Moreover, different Unix systems use different interlocking
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 techniques. The strategy of moving mail out of the inbox once and for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 all into a separate Rmail file avoids the need for interlocking in all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 the rest of Rmail, since only Rmail operates on the Rmail file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 @end enumerate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 When getting new mail, Rmail first copies the new mail from the inbox
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 file to the Rmail file and saves the Rmail file. It then deletes the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 inbox file. This way a system crash may cause duplication of mail between
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 the inbox and the Rmail file, but it cannot lose mail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 Copying mail from an inbox in the system's mailer directory actually puts
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 it in an intermediate file, @file{~/.newmail}. This is because the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 interlocking is done by a C program that copies to another file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 @file{~/.newmail} is deleted after mail merging is successful. If there is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 a crash at the wrong time, this file will continue to exist and will be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 used as an inbox the next time you get new mail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 @node Rmail Files, Rmail Output, Rmail Inbox, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 @chapter Multiple Mail Files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 Rmail operates by default on your @dfn{primary mail file}, which is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 named @file{~/RMAIL} and which receives your incoming mail from your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 system inbox file. You can also have other mail files and edit them with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 Rmail. These files can receive mail through their own inboxes, or you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360 can move messages into them by explicit command in Rmail (@pxref{Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 Output}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 @item i @var{file} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 Read @var{file} into Emacs and run Rmail on it (@code{rmail-input}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 @item M-x set-rmail-inbox-list @key{RET} @var{files} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 Specify inbox file names for current Rmail file to get mail from.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 @item g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 Merge new mail from current Rmail file's inboxes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 (@code{rmail-get-new-mail}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 @item C-u g @var{file}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 Merge new mail from inbox file @var{file}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 @kindex i (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 @findex rmail-input
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 To run Rmail on a file other than your primary mail file, you may use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 the @kbd{i} (@code{rmail-input}) command in Rmail. This visits the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 file, puts it in Rmail mode, and then gets new mail from the file's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 inboxes if any. You can also use @kbd{M-x rmail-input} even when not in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 Rmail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 The file you read with @kbd{i} does not have to be in Rmail file format.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 It could also be Unix mail format, mmdf format, or it could be a mixture
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 of all three, as long as each message has one of the three formats.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 Rmail recognizes all three and converts all the messages to proper Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
390 format before showing you the file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 @findex set-rmail-inbox-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393 Each Rmail file can contain a list of inbox file names; you can specify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 this list with @kbd{M-x set-rmail-inbox-list @key{RET} @var{files}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 @key{RET}}. The argument can contain any number of file names, separated
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 by commas. It can also be empty, which specifies that this file should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 have no inboxes. Once a list of inboxes is specified, the Rmail file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 remembers it permanently until it is explicitly changed.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 @kindex g (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 @findex rmail-get-new-mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 If an Rmail file has inboxes, new mail is merged in from the inboxes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 when you bring the Rmail file into Rmail, and when you use the @kbd{g}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 (@code{rmail-get-new-mail}) command. If the Rmail file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 specifies no inboxes, then no new mail is merged in at these times. A
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 special exception is made for your primary mail file: Rmail uses the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 standard system inbox for it if it does not specify an inbox.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 To merge mail from a file that is not the usual inbox, give the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 @kbd{g} key a numeric argument, as in @kbd{C-u g}. Rmail prompts you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 for a file name and merges mail from that file. The inbox file is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 deleted or changed at all when you use @kbd{g} with an argument, so this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 is a general way of merging one file of messages into another.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 @node Rmail Output, Rmail Labels, Rmail Files, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 @chapter Copying Messages Out to Files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 @item o @var{file} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 Append a copy of the current message to the file @var{file},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 writing it in Rmail file format (@code{rmail-output-to-rmail-file}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423 @item C-o @var{file} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 Append a copy of the current message to the file @var{file},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 writing it in Unix mail file format (@code{rmail-output}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428 @kindex o (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 @findex rmail-output-to-rmail-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 @kindex C-o (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 @findex rmail-output
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 If an Rmail file has no inboxes, use explicit @kbd{o} commands to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 write Rmail files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
434
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 @kbd{o} (@code{rmail-output-to-rmail-file}) appends the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436 message in Rmail format to the end of a specified file. This is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 best command to use to move messages between Rmail files. If you are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438 currently visiting the other Rmail file, copying is done into the other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
439 file's Emacs buffer instead. You should eventually save the buffer on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440 disk.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 The @kbd{C-o} (@code{rmail-output}) command in Rmail appends a copy of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443 the current message to a specified file, in Unix mail file format. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 is useful for moving messages into files to be read by other mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 processors that do not understand Rmail format.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
446
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 Copying a message with @kbd{o} or @kbd{C-o} gives the original copy of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 message the @samp{filed} attribute. @samp{filed} appears in the mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
449 line when such a message is current.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 Normally you should use only @kbd{o} to output messages to other Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 files, never @kbd{C-o}. But it is also safe if you always use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
453 @kbd{C-o}, never @kbd{o}. When a file is visited in Rmail, the last
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
454 message is checked, and if it is in Unix format, the entire file is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
455 scanned and all Unix-format messages are converted to Rmail format.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456 (The reason for checking the last message is that scanning the file is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 slow and most Rmail files have only Rmail format messages.) If you use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
458 @kbd{C-o} consistently, the last message is guaranteed to be in Unix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
459 format, so Rmail will convert all messages properly.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
460
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
461 When you and other users want to append mail to the same file, you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
462 probably always want to use @kbd{C-o} instead of @kbd{o}. Other mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 processors may not know Rmail format but will know Unix format.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 In any case, always use @kbd{o} to add to an Rmail file that is being
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 visited in Rmail. Adding messages with @kbd{C-o} to the actual disk file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 will trigger a ``simultaneous editing'' warning when you ask to save the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468 Emacs buffer, and the messages will be lost if you do save.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
469
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 @node Rmail Labels, Rmail Summary, Rmail Output, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 @chapter Labels
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 @cindex label (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 @cindex attribute (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 Each message can have various @dfn{labels} assigned to it as a means of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 classification. A label has a name; different names mean different labels.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 Any given label is either present or absent on a particular message. A few
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 label names have standard meanings and are given to messages automatically
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 by Rmail when appropriate; these special labels are called @dfn{attributes}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 All other labels are assigned by the user.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 @item a @var{label} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
484 Assign the label @var{label} to the current message (@code{rmail-add-label}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485 @item k @var{label} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 Remove the label @var{label} from the current message (@code{rmail-kill-label}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 @item C-M-n @var{labels} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
488 Move to the next message that has one of the labels @var{labels}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
489 (@code{rmail-next-labeled-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
490 @item C-M-p @var{labels} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491 Move to the previous message that has one of the labels @var{labels}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 (@code{rmail-previous-labeled-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
493 @item C-M-l @var{labels} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 Make a summary of all messages containing any of the labels @var{labels}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
495 (@code{rmail-summary-by-labels}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
498 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 Specifying an empty string for one these commands means to use the last
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 label specified for any of these commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
502 @kindex a (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 @kindex k (rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504 @findex rmail-add-label
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
505 @findex rmail-kill-label
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
506 The @kbd{a} (@code{rmail-add-label}) and @kbd{k}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 (@code{rmail-kill-label}) commands allow you to assign or remove any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 label on the current message. If the @var{label} argument is empty, it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 means to assign or remove the label most recently assigned or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
511
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 Once you have given messages labels to classify them as you wish, there
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513 are two ways to use the labels: in moving and in summaries.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 @kindex C-M-n (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 @kindex C-M-p (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 @findex rmail-next-labeled-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 @findex rmail-previous-labeled-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 The command @kbd{C-M-n @var{labels} @key{RET}}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 (@code{rmail-next-labeled-message}) moves to the next message that has one
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
521 of the labels @var{labels}. @var{labels} is one or more label names,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
522 separated by commas. @kbd{C-M-p} (@code{rmail-previous-labeled-message})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
523 is similar, but moves backwards to previous messages. A preceding numeric
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
524 argument to either one serves as a repeat count.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
525
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
526 @kindex C-M-l (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 @findex rmail-summary-by-labels
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
528 The command @kbd{C-M-l @var{labels} @key{RET}}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
529 (@code{rmail-summary-by-labels}) displays a summary containing only the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
530 messages that have at least one of a specified set of messages. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531 argument @var{labels} is one or more label names, separated by commas.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 @xref{Rmail Summary}, for information on summaries.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
533
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
534 If the @var{labels} argument to @kbd{C-M-n}, @kbd{C-M-p} or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
535 @kbd{C-M-l} is empty, it means to use the last set of labels specified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
536 for any of these commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
537
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
538 Some labels such as @samp{deleted} and @samp{filed} have built-in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
539 meanings and are assigned to or removed from messages automatically at
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 appropriate times; these labels are called @dfn{attributes}. Here is a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 list of Rmail attributes:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 @table @samp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 @item unseen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 Means the message has never been current. Assigned to messages when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 they come from an inbox file, and removed when a message is made
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 current.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 @item deleted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 Means the message is deleted. Assigned by deletion commands and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 removed by undeletion commands (@pxref{Rmail Deletion}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 @item filed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 Means the message has been copied to some other file. Assigned by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 file output commands (@pxref{Rmail Files}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 @item answered
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555 Means you have mailed an answer to the message. Assigned by the @kbd{r}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 command (@code{rmail-reply}). @xref{Rmail Reply}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 @item forwarded
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
558 Means you have forwarded the message to other users. Assigned by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
559 @kbd{f} command (@code{rmail-forward}). @xref{Rmail Reply}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
560 @item edited
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
561 Means you have edited the text of the message within Rmail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 @xref{Rmail Editing}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
563 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
564
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
565 All other labels are assigned or removed only by the user, and it is up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
566 to the user to decide what they mean.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
567
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
568 @node Rmail Summary, Rmail Reply, Rmail Labels, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 @chapter Summaries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 @cindex summary (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572 A @dfn{summary} is a buffer Rmail creates and displays to give you an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 overview of the mail in an Rmail file. It contains one line per message;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 each line shows the message number, the sender, the labels, and the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 subject. When you select the summary buffer, you can use a number of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 commands to select messages by moving in the summary buffer, or to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
577 delete or undelete messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
578
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 A summary buffer applies to a single Rmail file only; if you are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
580 editing multiple Rmail files, they have separate summary buffers. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
581 summary buffer name is generated by appending @samp{-summary} to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 Rmail buffer's name. Only one summary buffer is displayed at a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 time unless you make several windows and select the summary buffers by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 hand.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 * Rmail Make Summary:: Making various sorts of summaries.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 * Rmail Summary Edit:: Manipulating messages from the summary.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591 @node Rmail Make Summary, Rmail Summary Edit, Rmail Summary, Rmail Summary
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 @section Making Summaries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 Here are the commands to create a summary for the current Rmail file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 Summaries do not update automatically; to make an updated summary, you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 must use one of the commands again.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 @item h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600 @itemx C-M-h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 Summarize all messages (@code{rmail-summary}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 @item l @var{labels} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603 @itemx C-M-l @var{labels} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 Summarize message that have one or more of the specified labels
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 (@code{rmail-summary-by-labels}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606 @item C-M-r @var{rcpts} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 Summarize messages that have one or more of the specified recipients
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 (@code{rmail-summary-by-recipients}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 @kindex h (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612 @findex rmail-summary
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 The @kbd{h} or @kbd{C-M-h} (@code{rmail-summary}) command fills the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 summary buffer for the current Rmail file with a summary of all the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
615 messages in the file. It then displays and selects the summary buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
616 in another window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
617
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
618 @kindex l (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 @kindex C-M-l (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
620 @findex rmail-summary-by-labels
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 The @kbd{l} or @kbd{C-M-l @var{labels} @key{RET}}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 (@code{rmail-summary-by-labels}) makes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 a partial summary mentioning only the messages that have one or more of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 labels @var{labels}. @var{labels} should contain label names separated by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 commas.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 @kindex C-M-r (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 @findex rmail-summary-by-recipients
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 @kbd{C-M-r @var{rcpts} @key{RET}} (@code{rmail-summary-by-recipients})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 makes a partial summary mentioning only the messages that have one or more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 of the recipients @var{rcpts}. @var{rcpts} should contain mailing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 addresses separated by commas.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 Note that there is only one summary buffer for any Rmail file; making one
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 kind of summary discards any previously made summary.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 @node Rmail Summary Edit,, Rmail Make Summary, Rmail Summary
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 @section Editing in Summaries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 Summary buffers are given the major mode Rmail Summary mode, which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 provides the following special commands:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 @item j
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 Select the message described by the line that point is on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
646 (@code{rmail-summary-goto-msg}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
647 @item C-n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
648 Move to next line and select its message in Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649 (@code{rmail-summary-next-all}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 @item C-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 Move to previous line and select its message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 (@code{rmail-summary-@*previous-all}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 @item n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 Move to next line, skipping lines saying `deleted', and select its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 message (@code{rmail-summary-next-msg}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 @item p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 Move to previous line, skipping lines saying `deleted', and select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 its message (@code{rmail-summary-previous-msg}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 @item d
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660 Delete the current line's message, then do like @kbd{n}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 (@code{rmail-summary-delete-forward}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 @item u
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 Undelete and select this message or the previous deleted message in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 the summary (@code{rmail-summary-undelete}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665 @item @key{SPC}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 Scroll the other window (presumably Rmail) forward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 (@code{rmail-summary-scroll-msg-up}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668 @item @key{DEL}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 Scroll the other window backward (@code{rmail-summary-scroll-msg-down}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 @item x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 Kill the summary window (@code{rmail-summary-exit}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 @item q
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 Exit Rmail (@code{rmail-summary-quit}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 @kindex C-n (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 @kindex C-p (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 @findex rmail-summary-next-all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 @findex rmail-summary-previous-all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 The keys @kbd{C-n}(@code{rmail-summary-next-all}) and @kbd{C-p}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 (@code{rmail-summary-previous-all}) are modified in Rmail Summary mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 In addition to moving point in the summary buffer, they also cause the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 line's message to become current in the associated Rmail buffer. That
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 buffer is also made visible in another window if it is not currently
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 visible.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 @kindex n (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 @kindex p (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 @findex rmail-summary-next-msg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 @findex rmail-summary-previous-msg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 @kbd{n} and @kbd{p} are similar to @kbd{C-n} and @kbd{C-p}, but skip
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 lines that say `message deleted'. They are like the @kbd{n} and @kbd{p}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 keys of Rmail itself. Note, however, that in a partial summary these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 commands move only among the message listed in the summary.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 @kindex j (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 @findex rmail-summary-goto-msg
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 The other Emacs cursor motion commands are not changed in Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 Summary mode, so it is easy to get the point on a line whose message is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 not selected in Rmail. This can also happen if you switch to the Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 window and switch messages there. To get the Rmail buffer back in sync
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702 with the summary, use the @kbd{j} (@code{rmail-summary-goto-msg})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 command, which selects the message of the current summary line in Rmail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705 @kindex d (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 @kindex u (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 @findex rmail-summary-delete-forward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 @findex rmail-summary-undelete
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709 Deletion and undeletion can also be done from the summary buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 They always work based on where point is located in the summary buffer,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 ignoring which message is selected in Rmail. @kbd{d}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 (@code{rmail-summary-delete-forward}) deletes the current line's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 message, then moves to the next line whose message is not deleted and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 selects that message. The inverse is @kbd{u}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 (@code{rmail-summary-undelete}), which moves back (if necessary) to a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716 line whose message is deleted, undeletes that message, and selects it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 Rmail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 @kindex SPC (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 @kindex DEL (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 @findex rmail-summary-scroll-msg-down
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722 @findex rmail-summary-scroll-msg-up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 When moving through messages with the summary buffer, it is convenient
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 to be able to scroll the message while remaining in the summary window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725 The commands @key{SPC} (@code{rmail-summary-scroll-msg-up}) and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 @key{DEL} (@code{rmail-summary-scroll-msg-down}) do this. They scroll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 the message just as they do when the Rmail buffer is selected.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 @kindex x (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 @findex rmail-summary-exit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731 When you are finished using the summary, type @kbd{x}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 (@code{rmail-summary-exit}) to kill the summary buffer's window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 @kindex q (Rmail summary)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 @findex rmail-summary-quit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 You can also exit Rmail while in the summary. @kbd{q}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737 (@code{rmail-summary-quit}) kills the summary window, then saves the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 Rmail file and switches to another buffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 @node Rmail Reply, Rmail Editing, Rmail Summary, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 @chapter Sending Replies
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743 Rmail has several commands that use Mail mode to send mail. Only the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
744 special commands of Rmail for entering Mail mode are documented here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
745 Note that the usual keys for sending mail, @kbd{C-x m} and @kbd{C-x 4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
746 m}, are available in Rmail mode and work just as they usually do.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
747
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
749 @item m
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
750 Send a message (@code{rmail-mail}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751 @item c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 Continue editing already started outgoing message (@code{rmail-continue}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753 @item r
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 Send a reply to the current Rmail message (@code{rmail-reply}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 @item f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 Forward current message to other users (@code{rmail-forward}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759 @kindex r (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 @findex rmail-reply
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 @vindex rmail-dont-reply-to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 @cindex reply to a message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763 To reply to a the message you are reading in Rmail, type @kbd{r}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 (@code{rmail-reply}). This displays the @samp{*mail*} buffer in another
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765 window, much like @kbd{C-x 4 m}, but pre-initializes the @samp{Subject},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 @samp{To}, @samp{CC}, and @samp{In-reply-to} header fields based on the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 message you reply to. The @samp{To} field is given the sender of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 that message, and the @samp{CC} gets all the recipients of that message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 Recipients that match elements of the list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 @code{rmail-dont-reply-to} are omitted; by default, this list contains
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 your own mailing address.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 Once you have initialized the @samp{*mail*} buffer this way, sending the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774 mail goes as usual. You can edit the presupplied header fields if they
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 are not what you want.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 @kindex C-c C-y (Mail mode)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 @findex mail-yank-original
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 One additional Mail mode command is available when you invoke mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 from Rmail: @kbd{C-c C-y} (@code{mail-yank-original}) inserts into the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 outgoing message a copy of the current Rmail message. Normally this is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 the message you are replying to, but you can also switch to the Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783 buffer, select a different message, switch back, and yank the new current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 message. Normally the yanked message is indented four spaces and has
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 most header fields deleted from it; an argument to @kbd{C-c C-y}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 specifies the amount to indent. @kbd{C-u C-c C-y} neither indents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 the message nor deletes any header fields.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789 @kindex f (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790 @findex rmail-forward
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791 @cindex forward a message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 Another frequent reason to send mail in Rmail is to forward the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 message to other users. @kbd{f} (@code{rmail-forward}) makes this easy by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 preinitializing the @samp{*mail*} buffer with the current message as the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 text and a subject designating a forwarded message. All you have to do is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 fill in the recipients and send.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798 @kindex m (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 @findex rmail-mail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 You can use the @kbd{m} (@code{rmail-mail}) command to start editing an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
801 outgoing message that is not a reply. It leaves the header fields empty.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
802 Its only difference from @kbd{C-x 4 m} is that it makes the Rmail buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
803 accessible for @kbd{C-c y}, just as @kbd{r} does. Thus @kbd{m} can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
804 used to reply to or forward a message; it can do anything @kbd{r} or @kbd{f}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
805 can do.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
806
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807 @kindex c (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 @findex rmail-continue
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 The @kbd{c} (@code{rmail-continue}) command resumes editing the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 @samp{*mail*} buffer, to finish editing an outgoing message you were
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 already composing, or to alter a message you have sent.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 @node Rmail Editing, Rmail Digest, Rmail Reply, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814 @chapter Editing Within a Message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 Rmail mode provides a few special commands for moving within and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 editing the current message. In addition, the usual Emacs commands are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 available (except for a few, such as @kbd{C-M-n} and @kbd{C-M-h}, that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 are redefined by Rmail for other purposes). However, the Rmail buffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 is normally read-only, and to alter it you must use the Rmail command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 @kbd{w} described below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824 @item t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 Toggle display of original headers (@code{rmail-toggle-headers}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 @item w
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 Edit current message (@code{rmail-edit-current-message}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830 @kindex t (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 @findex rmail-toggle-header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 @vindex rmail-ignored-headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 Rmail reformats the header of each message before displaying it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 Normally this involves deleting most header fields, on the grounds that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 they are not interesting. The variable @code{rmail-ignored-headers}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 should contain a regexp that matches the header fields to discard in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 this way. The original headers are saved permanently; to see what they
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 look like, use the @kbd{t} (@code{rmail-toggle-headers}) command. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 discards the reformatted headers of the current message and displays it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 with the original headers. Repeating @kbd{t} reformats the message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 again. Selecting the message again also reformats.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 @kindex w (Rmail)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 @findex rmail-edit-current-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 The Rmail buffer is normally read-only, and most of the characters you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846 would type to modify it (including most letters) are redefined as Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 commands. This is usually not a problem since people rarely want to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 change the text of a message. When you do want to do this, type @kbd{w}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 (@code{rmail-edit-current-message}), which changes from Rmail mode to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 Rmail Edit mode, another major mode which is nearly the same as Text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 mode. The mode line indicates this change.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 In Rmail Edit mode, letters insert themselves as usual and the Rmail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 commands are not available. When you are finished editing the message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 and are ready to go back to Rmail, type @kbd{C-c C-c}, which switches
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 back to Rmail mode. To return to Rmail mode but cancel all the editing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 you have done, type @kbd{C-c C-]}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 @vindex rmail-edit-mode-hook
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 Entering Rmail Edit mode calls the value of the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 @code{text-mode-hook} with no arguments, if that value exists and is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 @code{nil}. It then does the same with the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 @code{rmail-edit-mode-hook} and finally adds the attribute @samp{edited}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 to the message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 @node Rmail Digest,, Rmail Editing, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 @chapter Digest Messages
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 @cindex digest message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 @cindex undigestify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 A @dfn{digest message} is a message which exists to contain and carry
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 several other messages. Digests are used on moderated mailing lists. All
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 messages that arrive for the list during a period of time, such as one
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874 day, are put inside a single digest which is then sent to the subscribers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875 Transmitting the single digest uses much less computer time than
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876 transmitting the individual messages even though the total size is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877 same, because the per-message overhead in network mail transmission is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 considerable.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 @findex undigestify-rmail-message
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 When you receive a digest message, the most convenient way to read it is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 to @dfn{undigestify} it: to turn it back into many individual messages.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 You can then read and delete the individual messages as it suits you.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 To undigestify a message, select it and then type @kbd{M-x
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 undigestify-rmail-message}. This copies each submessage as a separate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 Rmail message and inserts them all following the digest. The digest
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 message itself is flagged as deleted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 @contents
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 @bye