BSD 4_1c_2 release
[unix-history] / usr / doc / Mail / mail3.nr
CommitLineData
729d3e46
C
1.bp
2.sh 1 "Maintaining folders"
3.pp
4.i Mail
5includes a simple facility for maintaining groups of messages together
6in folders. This section describes this facility.
7.pp
8To use the folder facility, you must tell
9.i Mail
10where you wish to keep your folders. Each folder of messages will
11be a single file. For convenience, all of your folders are kept in
12a single directory of your choosing. To tell
13.i Mail
14where your folder directory is, put a line of the form
15.(l
16set folder=letters
17.)l
18in your
19.i .mailrc
20file. If, as in the example above, your folder directory does not
21begin with a `/,'
22.i Mail
23will assume that your folder directory is to be found starting from
24your home directory. Thus, if your home directory is
25.b /usr/person
26the above example told
27.i Mail
28to find your folder directory in
29.b /usr/person/letters .
30.pp
31Anywhere a file name is expected, you can use a folder name, preceded
32with `+.' For example, to put a message into a folder with the
33.b save
34command, you can use:
35.(l
36save +classwork
37.)l
38to save the current message in the
39.i classwork
40folder. If the
41.i classwork
42folder does not yet exist, it will be created. Note that messages
43which are saved with the
44.b save
45command are automatically removed from your system mailbox.
46.pp
47In order to make a copy of a message in a folder without causing
48that message to be removed from your system mailbox, use the
49.b copy
50command, which is identical in all other respects to the
51.b save
52command. For example,
53.(l
54copy +classwork
55.)l
56copies the current message into the
57.i classwork
58folder and leaves a copy in your system mailbox.
59.pp
60The
61.b folder
62command
63can be used to direct
64.i Mail
65to the contents of a different folder.
66For example,
67.(l
68folder +classwork
69.)l
70directs
71.i Mail
72to read the contents of the
73.i classwork
74folder. All of the commands that you can use on your system
75mailbox are also applicable to folders, including
76.b type ,
77.b delete ,
78and
79.b reply .
80To inquire which folder you are currently editing, use simply:
81.(l
82folder
83.)l
84.pp
85To list your current set of folders, use the
86.b folders
87command.
88.pp
89To start
90.i Mail
91reading one of your folders, you can use the
92.b \-f
93option described in section 2. For example:
94.(l
95% Mail \-f +classwork
96.)l
97will cause
98.i Mail
99to read your
100.i classwork
101folder without looking at your system mailbox.