1 .TH REFILE %manext1% 2013-03-19 "%nmhversion%"
6 refile \- file message in other nmh folders
15 .RB [ \-link " | " \-nolink ]
16 .RB [ \-preserve " | " \-nopreserve ]
17 .RB [ \-retainsequences " | " \-noretainsequences ]
18 .RB [ \-unlink " | " \-nounlink ]
35 messages 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 multiple-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
56 If this is not given, the current folder is used by default.
57 If no message is specified, then `cur' is used by default.
64 to use the specified file as the source message to be filed, rather
65 than a message from a folder.
66 Note that the file should be a validly formatted message, just like
69 message. It should NOT be in mail drop format (to convert a file in
70 mail drop format to a folder of
76 If a destination folder doesn't exist,
78 will ask if you want to create it.
79 A negative response will abort the file operation.
80 If the standard input for
86 will not ask any questions and will proceed as if the user answered
87 \*(lqyes\*(rq to all questions.
91 preserves the source folder copy of the message (i.e., it does an
97 (the default) deletes the filed messages from the source folder.
99 Normally when a message is refiled, for each destination folder it
100 is assigned the number which is one above the current highest message
101 number in that folder. Use of the
104 this message renaming, and try to preserve the number of the message.
105 If a conflict for a particular folder occurs when using the
109 will use the next available message number which is above the message
110 number you wish to preserve.
112 As message sequences are folder-specific, moving the message from
113 the source folder removes it from all its sequences in that folder.
115 adds it to those same sequences in the destination folder,
116 creating any that don't exist.
117 This adding does not apply for the \*(lqcur\*(rq sequence.
123 is specified), the filed messages will be removed from the source
124 folder. The default is to remove these messages by renaming them
125 with a site-dependent prefix (usually a comma).
126 Such files will then need to be removed in some manner after a
127 certain amount of time. Many sites arrange for
129 to remove these files once a day, so check with your system administrator.
131 Alternately, if you wish for
133 to really remove the files representing these messages from the source
134 folder, you can use the
136 switch (not to be confused with the
138 switch). But messages removed by this method cannot be later recovered.
140 If you prefer a more sophisticated method of `removing' the messages
141 from the source folder, you can define the
143 profile 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 override this profile specification.
160 option forces the message files to be deleted by renaming or
161 unlinking them as described above.
167 to file the <mh-dir>/draft.
171 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
172 ^$HOME/.mh_profile~^The user profile
174 .SH "PROFILE COMPONENTS"
178 .ta \w'ExtraBigProfileName 'u
179 ^Path:~^To determine the user's nmh directory
180 ^Current\-Folder:~^To find the default current folder
181 ^Folder\-Protect:~^To set mode when creating a new folder
182 ^rmmproc:~^Program to delete the message
191 .RB ` "\-src\ +folder" "' defaults to the current folder"
192 .RB ` msgs "' defaults to cur"
196 .RB ` \-noretainsequences '
202 is given, it will become the current folder.
205 nor `all' is specified, the current message in the
206 source folder will be set to the last message specified; otherwise,
207 the current message won't be changed.
209 If the \*(lqPrevious\-Sequence\*(rq profile entry is set, in addition
210 to defining the named sequences from the source folder,
212 will also define those sequences for the destination folders.
215 for information concerning the previous sequence.
223 to delete the message, the
231 or you will create an infinite loop.