]> diplodocus.org Git - nmh/blob - docs/historical/2.9BSD/man/file.1
Added test of encoded Resent-To: and Resent-cc:.
[nmh] / docs / historical / 2.9BSD / man / file.1
1 .TH FILE 1 "3 August 1983"
2 .UC 4
3 .SH NAME
4 file \- file message(s) in (an)other folder(s)
5 .SH SYNOPSIS
6 file [ \-src +folder ] [ msgs ] [ \-link ] [ \-preserve ] +folder ...
7 [ \-nolink] [ \-nopreserve ]
8 [ \-file file ] [ \-nofile ] [ \-help ]
9 .SH DESCRIPTION
10 \fIFile\fR moves (\fImv\fR(1)) or links (\fIln\fR(1)) messages from a
11 source folder into one or more destination folders.
12 If you think
13 of a message as a sheet of paper, this operation is not
14 unlike filing the sheet of paper (or copies) in file cabinet
15 folders.
16 When a message is filed, it is linked into the
17 destination folder(s) if possible, and is copied otherwise.
18 As long
19 as the destination folders are all on the same file system, multiple filing
20 causes little storage overhead.
21 This facility provides a good way to cross-file or multiply-index
22 messages.
23 For example, if a message is received from Jones about
24 the ARPA Map Project, the command
25 .nf
26
27 file\0cur\0+jones\0+Map
28
29 .fi
30 would allow the message to be found in either of the two
31 folders `jones' or `Map'.
32 .PP
33 The option `\-file file' directs \fIfile\fR to use the specified
34 file as the source message to be filed, rather than a message from
35 a folder.
36 .PP
37 If a destination folder doesn't exist, \fIfile\fR will ask if you
38 want to create one.
39 A negative response will abort the file
40 operation.
41 .PP
42 `\-link' preserves the source folder copy of the message
43 (i.e., it does a \fIln\fR(1) rather than a \fImv\fR(1)), whereas,
44 `\-nolink' deletes the \*(lqfiled\*(rq messages from the source
45 folder.
46 Normally, when a message is filed, it is assigned the
47 next highest number available in each of the destination folders.
48 Use of the `\-preserve' switch will override this message
49 \*(lqrenaming\*(rq, but name conflicts may occur, so
50 use this switch cautiously.
51 (See \fIpick\fR for more details on
52 message numbering.)
53 .PP
54 If `\-link' is not specified (or `\-nolink' is specified),
55 the filed messages will be removed (
56 .IR unlink (2))
57 from the source folder.
58 .PP
59 If `\-src +folder' is given, it will become the
60 current folder for future MH commands.
61 If neither `\-link' nor
62 `all' are specified, the current message in the source
63 folder will be set to the last message specified; otherwise, the
64 current message won't be changed.
65 .SH FILES
66 .nf
67 .ta \w'$HOME/\*.mh\(ruprofile 'u
68 $HOME/\*.mh\(ruprofile The user profile
69 .fi
70 .SH "PROFILE COMPONENTS"
71 .nf
72 .ta \w'Folder\-Protect: 'u
73 Path: To determine the user's MH directory
74 Current-Folder: To find the default current folder
75 Folder\-Protect: To set mode when creating a new folder
76 .fi
77 .SH DEFAULTS
78 .nf
79 `\-src +folder' defaults to the current folder
80 `msgs' defaults to cur
81 `\-nolink'
82 `\-nopreserve'
83 `\-nofile'
84 .fi
85 .SH CONTEXT
86 If `\-src +folder' is given, it will become the
87 current folder for future MH commands.
88 If neither `\-link' nor
89 `all' are specified, the current message in the source
90 folder will be set to the last message specified; otherwise, the
91 current message won't be changed.