1 .TH REFILE %manext1% "January 18, 2001" "%nmhversion%"
6 refile \- file message in other folders
13 .RB [ \-link " | " \-nolink ]
14 .RB [ \-preserve " | " \-nopreserve ]
15 .RB [ \-unlink " | " \-nounlink ]
35 from a source folder into one or more destination folders.
37 If you think of a message as a sheet of paper, this operation is not
38 unlike filing the sheet of paper (or copies) in file cabinet folders.
39 When a message is filed, it is linked into the destination folder(s)
40 if possible, and is copied otherwise. As long as the destination
41 folders are all on the same file system, multiple filing causes little
42 storage overhead. This facility provides a good way to cross\-file or
43 multiply\-index messages. For example, if a message is received from
44 Jones about the ARPA Map Project, the command
47 refile\0cur\0+jones\0+Map
50 would allow the message to be found in either of the two folders `jones'
53 You may specify the source folder using
57 not given, the current folder is used by default. If no message is
58 specified, then `cur' is used by default.
65 to use the specified file
66 as the source message to be filed, rather than a message from a folder.
67 Note that the file should be a validly formatted message, just like
72 be in mail drop format
73 (to convert a file in mail drop format to a folder of
79 If a destination folder doesn't exist,
82 to create it. A negative response will abort the file operation. If the
89 will not ask any questions and will proceed as if the user answered
90 \*(lqyes\*(rq to all questions.
94 preserves the source folder copy of the message (i.e.,
101 (the default) deletes the filed messages from the source folder.
103 Normally when a message is refiled, for each destination folder it
104 is assigned the number which is one above the current highest message
105 number in that folder. Use of the
108 this message renaming, and try to preserve the number of the message.
109 If a conflict for a particular folder occurs when using the
113 will use the next available message number
114 which is above the message number you wish to preserve.
120 is specified), the filed
121 messages will be removed from the source folder. The default is to
122 remove these messages by renaming them with a site-dependent prefix
123 (usually a comma). Such files will then need to be removed in some
124 manner after a certain amount of time. Many sites arrange for
126 to remove these files once a day, so check with your
127 system administrator.
129 Alternately, if you wish for
131 to really remove the files
132 representing these messages from the source folder, you can use the
134 switch (not to be confused with the
137 messages removed by this method cannot be later recovered.
139 If you prefer a more sophisticated method of `removing' the messages
140 from the source folder, you can define the
143 component. For example, you can add a profile component such as
146 rmmproc: /home/coleman/bin/rmm_msgs
151 will instead call the named program or script to
152 handle the message files.
157 on the command line to
158 override this profile specification. The
161 the message files to be deleted by renaming or unlinking them as
168 to file the <mh\-dir>/draft.
172 .ta \w'%etcdir%/ExtraBigFileName 'u
173 ^$HOME/\&.mh\(ruprofile~^The user profile
175 .SH "PROFILE COMPONENTS"
179 .ta \w'ExtraBigProfileName 'u
180 ^Path:~^To determine the user's nmh directory
181 ^Current\-Folder:~^To find the default current folder
182 ^Folder\-Protect:~^To set mode when creating a new folder
183 ^rmmproc:~^Program to delete the message
191 .RB ` "\-src\ +folder" "' defaults to the current folder"
192 .RB ` msgs "' defaults to cur"
201 is given, it will become the current folder.
204 nor `all' is specified, the current message in the
205 source folder will be set to the last message specified; otherwise, the
206 current message won't be changed.
208 If the \*(lqPrevious\-Sequence\*(rq profile entry is set, in addition to defining
209 the named sequences from the source folder,
212 those sequences for the destination folders. See
214 for information concerning the previous sequence.
220 to delete the message,
229 or you will create an infinite loop.