In VM, a mail folder is a file where mail is stored. VM can read the following folder formats:
By default, VM uses the Unix "From " format for new folders; you can
change this by setting the variable
vm-default-folder-type'. Existing folders will keep
their original formats; to convert a folder to a different format,
v'isit the folder in VM and then hit `
select the target type and you're done.
VM allows you to file mail messages out into folders for later
reference. While reading the message you want to save, press the
s' key. VM will prompt you for a mail folder name.
Type the folder name you want to save the message in here. To visit
a folder of saved messages, press the '
v' key, and enter
the folder name in the mini-buffer. You can use completion in the
VM allows you to auto-file mail into pre-designated folders. This makes for archiving mailing list and other correspondence very easy. For example:
(setq vm-auto-folder-alist '(("Sender:" ("email@example.com" . "~/mail/J-BODIES")) ("From:" ("firstname.lastname@example.org" . "~/mail/ZOCALO")) ("Sender:" ("email@example.com" . "~/mail/HONDA"))))
You can auto-file messages using any standard mail header you want.
To actually do the filing, use the '
Alternatively, if you try to save a message with '
the folder defined in `
auto-folder-alist' will be used
as the default folder, in place of the most-recently-used folder.
You may also want to take a look at the variable:
vm-delete-after-archiving'. Setting it to
t' will automatically mark the archived messages for
One of VM's very powerful features is the ability to create virtual folders. Virtual folders can be used to select certain messages from one or several folders, filter and sort mail, and for various other purposes. Some examples of the use of virtual folders to filter and sort mail are given later, in the section on Filtering and Sorting.
Please see the document-string of the
vm-virtual-folder-alist' variable for more information.