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