(emacs)Rmail Output


Next: Rmail Labels Prev: Rmail Files Up: Rmail

Copying Messages Out to Files
=============================

`o FILE RET'
     Append a copy of the current message to the file FILE, writing it
     in Rmail file format by default (`rmail-output-to-rmail-file').

`C-o FILE RET'
     Append a copy of the current message to the file FILE, writing it
     in Unix mail file format by default (`rmail-output').

   If an Rmail file has no inboxes, the only way messages get into it is
by means of explicit `o' commands.

   `o' (`rmail-output-to-rmail-file') appends the current message in
Rmail format to the end of the specified file.  This is the best command
to use to move messages between Rmail files.  If the other Rmail file is
currently visited, the copying is done into the other file's Emacs
buffer instead.  You should eventually save it on disk.

   The `C-o' (`rmail-output') command in Rmail appends a copy of the
current message to a specified file, in inbox file format.  This is
useful for moving messages into files to be read by other mail
processors that do not understand Rmail format.

   The `o' and `C-o' commands are actually equivalent (aside from
having separate file name defaults) when you specify an existing file;
both commands check the file's contents to determine which format to use
(Rmail or inbox).  But it does matter which command you use when you
specify a nonexistent file; `o' starts it in Rmail format, while `C-o'
starts it in inbox format.

   Copying a message with `o' or `C-o' gives the original copy of the
message the `filed' attribute, so that `filed' appears in the mode line
when such a message is current.  If you like to keep just a single copy
of every mail message, set the variable `rmail-delete-after-output' to
`t'; then the `o' and `C-o' commands delete the original message after
copying it.  (You can undelete the original afterward.)

   Copying messages in Unix format copies the header fields that are
displayed in Rmail at the time.  Thus, if you use the `t' command to
view the entire header and then copy the message, the entire header is
copied.

   The variable `rmail-output-file-alist' lets you specify intelligent
defaults for the output file, based on the contents of the current
message.  The value should be a list whose elements have this form:

     (REGEXP . FILENAME)

If there's a match for REGEXP in the current message, then the default
file name for output is FILENAME.  If multiple elements match the
message, the first matching element decides the default file name.


automatically generated by info2www