1 .\" This file is automatically generated. Do not edit!
2 .\" @(#)$Id: refile.rf,v 1.12 1992/12/19 00:20:58 jromine Exp $
5 refile \- file message in other folders
10 \%[\-link] \%[\-nolink]
11 \%[\-preserve] \%[\-nopreserve]
14 \%[\-rmmproc program] \%[\-normmproc]
18 \fIRefile\fR moves (\fImv\fR\0(1)) or links (\fIln\fR\0(1)) messages from a
19 source folder into one or more destination folders.
21 of a message as a sheet of paper, this operation is not
22 unlike filing the sheet of paper (or copies) in file cabinet
24 When a message is filed, it is linked into the
25 destination folder(s) if possible, and is copied otherwise.
27 as the destination folders are all on the same file system, multiple filing
28 causes little storage overhead.
29 This facility provides a good way to cross\-file or multiply\-index
31 For example, if a message is received from Jones about
32 the ARPA Map Project, the command
34 refile\0cur\0+jones\0+Map
36 would allow the message to be found in either of the two
37 folders `jones' or `Map'.
39 The option `\-file\ file' directs \fIrefile\fR to use the specified
40 file as the source message to be filed, rather than a message from
42 Note that the file should be a validly formatted message,
43 just like any other \fIMH\fR message.
44 It should \fBNOT\fR be in mail drop format
45 (to convert a file in mail drop format to a folder of \fIMH\fR messages,
48 If a destination folder doesn't exist, \fIrefile\fR will ask if you
50 A negative response will abort the file operation.
51 If the standard input for \fIrefile\fR is \fInot\fR a tty,
52 then \fIrefile\fR will not ask any questions and will proceed as if
53 the user answered \*(lqyes\*(rq to all questions.
55 The option `\-link' preserves the source folder copy of the message
56 (i.e., it does a \fIln\fR(1) rather than a \fImv\fR(1)), whereas,
57 `\-nolink' deletes the filed messages from the source
59 Normally, when a message is filed, it is assigned the
60 next highest number available in each of the destination folders.
61 Use of the `\-preserve' switch will override this message
62 renaming, but name conflicts may occur, so
63 use this switch cautiously.
65 If `\-link' is not specified (or `\-nolink' is specified),
66 the filed messages will be removed from the
67 source folder, by renaming them with a site-dependent prefix (usually
71 If the user has a profile component such as
76 will instead call the named program to delete the message files.
77 The user may specify `\-rmmproc program' on the command line
78 to override this profile specification.
79 The \`-normmproc' option forces
80 the message files to be deleted
81 by renaming them as described above.
83 The `\-draft' switch tells \fIrefile\fR to file the <mh\-dir>/draft.
85 ^$HOME/\&.mh\(ruprofile~^The user profile
87 ^Path:~^To determine the user's MH directory
89 ^Current\-Folder:~^To find the default current folder
91 ^Folder\-Protect:~^To set mode when creating a new folder
93 ^rmmproc:~^Program to delete the message
97 `\-src\ +folder' defaults to the current folder
99 `msgs' defaults to cur
105 If `\-src\ +folder' is given, it will become the
107 If neither `\-link' nor `all' is specified,
108 the current message in the source
109 folder will be set to the last message specified; otherwise, the
110 current message won't be changed.
112 If the Previous\-Sequence profile entry is set,
113 in addition to defining the named sequences from the source folder,
114 \fIrefile\fR will also define those sequences for the destination folders.
115 See \fImh\-sequence\fR\0(5) for information concerning the previous sequence.
117 Since \fIrefile\fR uses your \fIrmmproc\fP to delete the message,
118 the \fIrmmproc\fP must \fBNOT\fP call \fIrefile\fP without
119 specifying `\-normmproc',
120 or you will create an infinte loop.