Next: Rmail Output Prev: Rmail Inbox Up: Rmail
Multiple Mail Files
Rmail operates by default on your "primary mail file", which is named
`~/RMAIL' and receives your incoming mail from your system inbox file.
But you can also have other mail files and edit them with Rmail. These
files can receive mail through their own inboxes, or you can move
messages into them with explicit Rmail commands (Note: Rmail Output.).
`i FILE RET'
Read FILE into Emacs and run Rmail on it (`rmail-input').
`M-x set-rmail-inbox-list RET FILES RET'
Specify inbox file names for current Rmail file to get mail from.
Merge new mail from current Rmail file's inboxes
`C-u g FILE RET'
Merge new mail from inbox file FILE.
To run Rmail on a file other than your primary mail file, you may use
the `i' (`rmail-input') command in Rmail. This visits the file, puts
it in Rmail mode, and then gets new mail from the file's inboxes if
any. The file should be in Rmail format. You can use `M-x
rmail-input' even when not in Rmail.
The file you read with `i' should usually be a valid Rmail file. If
it is not, then Rmail tries to decompose it into a stream of messages
in various known formats. If it succeeds, it converts the whole file to
an Rmail file.
Each Rmail file can contain a list of inbox file names; you can
specify this list with `M-x set-rmail-inbox-list RET FILES RET'. The
argument can contain any number of file names, separated by commas. It
can also be empty, which specifies that this file should have no
inboxes. Once a list of inboxes is specified, the Rmail file remembers
it permanently until it is explicitly changed.
If an Rmail file has inboxes, new mail is merged in from the inboxes
when the Rmail file is brought into Rmail, and when you use the `g'
(`rmail-get-new-mail') command. If the Rmail file specifies no
inboxes, then no new mail is merged in at these times. As a special
exception, if your primary mail file does not specify any inbox files,
it uses the standard system inbox.
To merge mail from a file that is not the usual inbox, give the `g'
key a numeric argument, as in `C-u g'. Then it reads a file name and
merges mail from that file. The inbox file is not deleted or changed
in any way when `g' with an argument is used. This is, therefore, a
general way of merging one file of messages into another.
automatically generated by info2www