386BSD 0.1 development
[unix-history] / usr / othersrc / share / doc / usd / 07.Mail / mail3.nr
CommitLineData
f89c3113
WJ
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)mail3.nr 6.2 (Berkeley) 4/17/91
33.\"
34.sh 1 "Maintaining folders"
35.pp
36.i Mail
37includes a simple facility for maintaining groups of messages together
38in folders. This section describes this facility.
39.pp
40To use the folder facility, you must tell
41.i Mail
42where you wish to keep your folders. Each folder of messages will
43be a single file. For convenience, all of your folders are kept in
44a single directory of your choosing. To tell
45.i Mail
46where your folder directory is, put a line of the form
47.(l
48set folder=letters
49.)l
50in your
51.i .mailrc
52file. If, as in the example above, your folder directory does not
53begin with a `/,'
54.i Mail
55will assume that your folder directory is to be found starting from
56your home directory. Thus, if your home directory is
57.b /usr/person
58the above example told
59.i Mail
60to find your folder directory in
61.b /usr/person/letters .
62.pp
63Anywhere a file name is expected, you can use a folder name, preceded
64with `+.' For example, to put a message into a folder with the
65.b save
66command, you can use:
67.(l
68save +classwork
69.)l
70to save the current message in the
71.i classwork
72folder. If the
73.i classwork
74folder does not yet exist, it will be created. Note that messages
75which are saved with the
76.b save
77command are automatically removed from your system mailbox.
78.pp
79In order to make a copy of a message in a folder without causing
80that message to be removed from your system mailbox, use the
81.b copy
82command, which is identical in all other respects to the
83.b save
84command. For example,
85.(l
86copy +classwork
87.)l
88copies the current message into the
89.i classwork
90folder and leaves a copy in your system mailbox.
91.pp
92The
93.b folder
94command
95can be used to direct
96.i Mail
97to the contents of a different folder.
98For example,
99.(l
100folder +classwork
101.)l
102directs
103.i Mail
104to read the contents of the
105.i classwork
106folder. All of the commands that you can use on your system
107mailbox are also applicable to folders, including
108.b type ,
109.b delete ,
110and
111.b reply .
112To inquire which folder you are currently editing, use simply:
113.(l
114folder
115.)l
116.pp
117To list your current set of folders, use the
118.b folders
119command.
120.pp
121To start
122.i Mail
123reading one of your folders, you can use the
124.b \-f
125option described in section 2. For example:
126.(l
127% Mail \-f +classwork
128.)l
129will cause
130.i Mail
131to read your
132.i classwork
133folder without looking at your system mailbox.