Next Previous Contents

9. Folders

9.1. What is a VM folder?

Date: June 20, 1998
Updated: February 8, 1999

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.

9.2 Filing mail into folders

Date: June 20, 1998

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 normal way.

 

9.3. Auto filing mail into folders

Date: June 20, 1998
Updated: February 8, 1999

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:" ("owner-j-body@example.org" . "~/mail/J-BODIES"))
        ("From:" ("katana@example.com" . "~/mail/ZOCALO"))
        ("Sender:" ("owner-honda-perf@example.edu" . "~/mail/HONDA"))))

You can auto-file messages using any standard mail header you want. To actually do the filing, use the 'A' key. Alternatively, if you try to save a message with 's', 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 deletion.

9.4. Virtual folders

Date: June 20, 1998
Updated: February 8, 1999

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.


Next Previous Contents