1 .TH REFILE %manext1% "March 18, 2013" "%nmhversion%"
6 refile \- file message in other folders
15 .RB [ \-link " | " \-nolink ]
16 .RB [ \-preserve " | " \-nopreserve ]
17 .RB [ \-retainsequences " | " \-noretainsequences ]
18 .RB [ \-unlink " | " \-nounlink ]
36 from a source folder into one or more destination folders.
38 If you think of a message as a sheet of paper, this operation is not
39 unlike filing the sheet of paper (or copies) in file cabinet folders.
40 When a message is filed, it is linked into the destination folder(s)
41 if possible, and is copied otherwise. As long as the destination
42 folders are all on the same file system, multiple filing causes little
43 storage overhead. This facility provides a good way to cross\-file or
44 multiply\-index messages. For example, if a message is received from
45 Jones about the ARPA Map Project, the command
48 refile\0cur\0+jones\0+Map
51 would allow the message to be found in either of the two folders `jones'
54 You may specify the source folder using
58 not given, the current folder is used by default. If no message is
59 specified, then `cur' is used by default.
66 to use the specified file
67 as the source message to be filed, rather than a message from a folder.
68 Note that the file should be a validly formatted message, just like
73 be in mail drop format
74 (to convert a file in mail drop format to a folder of
80 If a destination folder doesn't exist,
83 to create it. A negative response will abort the file operation. If the
90 will not ask any questions and will proceed as if the user answered
91 \*(lqyes\*(rq to all questions.
95 preserves the source folder copy of the message (i.e.,
102 (the default) deletes the filed messages from the source folder.
104 Normally when a message is refiled, for each destination folder it
105 is assigned the number which is one above the current highest message
106 number in that folder. Use of the
109 this message renaming, and try to preserve the number of the message.
110 If a conflict for a particular folder occurs when using the
114 will use the next available message number
115 which is above the message number you wish to preserve.
117 As message sequences are folder-specific,
118 moving the message from the source folder removes it from all its
119 sequences in that folder.
121 adds it to those same sequences in the destination folder,
122 creating any that don't exist.
123 This adding does not apply for the \*(lqcur\*(rq sequence.
129 is specified), the filed
130 messages will be removed from the source folder. The default is to
131 remove these messages by renaming them with a site-dependent prefix
132 (usually a comma). Such files will then need to be removed in some
133 manner after a certain amount of time. Many sites arrange for
135 to remove these files once a day, so check with your
136 system administrator.
138 Alternately, if you wish for
140 to really remove the files
141 representing these messages from the source folder, you can use the
143 switch (not to be confused with the
146 messages removed by this method cannot be later recovered.
148 If you prefer a more sophisticated method of `removing' the messages
149 from the source folder, you can define the
152 component. For example, you can add a profile component such as
155 rmmproc: /home/coleman/bin/rmm_msgs
160 will instead call the named program or script to
161 handle the message files.
166 on the command line to
167 override this profile specification. The
170 the message files to be deleted by renaming or unlinking them as
177 to file the <mh\-dir>/draft.
181 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
182 ^$HOME/\&.mh\(ruprofile~^The user profile
184 .SH "PROFILE COMPONENTS"
188 .ta \w'ExtraBigProfileName 'u
189 ^Path:~^To determine the user's nmh directory
190 ^Current\-Folder:~^To find the default current folder
191 ^Folder\-Protect:~^To set mode when creating a new folder
192 ^rmmproc:~^Program to delete the message
201 .RB ` "\-src\ +folder" "' defaults to the current folder"
202 .RB ` msgs "' defaults to cur"
206 .RB ` \-noretainsequences '
212 is given, it will become the current folder.
215 nor `all' is specified, the current message in the
216 source folder will be set to the last message specified; otherwise, the
217 current message won't be changed.
219 If the \*(lqPrevious\-Sequence\*(rq profile entry is set, in addition to defining
220 the named sequences from the source folder,
223 those sequences for the destination folders. See
225 for information concerning the previous sequence.
233 to delete the message,
244 or you will create an infinite loop.