1 .TH REFILE %manext1% 2013-03-19 "%nmhversion%"
6 refile \- file message in 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
71 be in mail drop format (to convert a file in
72 mail drop format to a folder of
78 If a destination folder doesn't exist,
80 will ask if you want to create it.
81 A negative response will abort the file operation.
82 If the standard input for
88 will not ask any questions and will proceed as if the user answered
89 \*(lqyes\*(rq to all questions.
93 preserves the source folder copy of the message (i.e., it does an
99 (the default) deletes the filed messages from the source folder.
101 Normally when a message is refiled, for each destination folder it
102 is assigned the number which is one above the current highest message
103 number in that folder. Use of the
106 this message renaming, and try to preserve the number of the message.
107 If a conflict for a particular folder occurs when using the
111 will use the next available message number which is above the message
112 number you wish to preserve.
114 As message sequences are folder-specific, moving the message from
115 the source folder removes it from all its sequences in that folder.
117 adds it to those same sequences in the destination folder,
118 creating any that don't exist.
119 This adding does not apply for the \*(lqcur\*(rq sequence.
125 is specified), the filed messages will be removed from the source
126 folder. The default is to remove these messages by renaming them
127 with a site-dependent prefix (usually a comma).
128 Such files will then need to be removed in some manner after a
129 certain amount of time. Many sites arrange for
131 to remove these files once a day, so check with your system administrator.
133 Alternately, if you wish for
135 to really remove the files representing these messages from the source
136 folder, you can use the
138 switch (not to be confused with the
140 switch). But messages removed by this method cannot be later recovered.
142 If you prefer a more sophisticated method of `removing' the messages
143 from the source folder, you can define the
145 profile component. For example, you can add a profile component such as
148 rmmproc: /home/coleman/bin/rmm_msgs
153 will instead call the named program or script to
154 handle the message files.
159 on the command line to override this profile specification.
162 option forces the message files to be deleted by renaming or
163 unlinking them as described above.
169 to file the <mh-dir>/draft.
173 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
174 ^$HOME/.mh_profile~^The user profile
176 .SH "PROFILE COMPONENTS"
180 .ta \w'ExtraBigProfileName 'u
181 ^Path:~^To determine the user's nmh directory
182 ^Current\-Folder:~^To find the default current folder
183 ^Folder\-Protect:~^To set mode when creating a new folder
184 ^rmmproc:~^Program to delete the message
193 .RB ` "\-src\ +folder" "' defaults to the current folder"
194 .RB ` msgs "' defaults to cur"
198 .RB ` \-noretainsequences '
204 is given, it will become the current folder.
207 nor `all' is specified, the current message in the
208 source folder will be set to the last message specified; otherwise,
209 the current message won't be changed.
211 If the \*(lqPrevious\-Sequence\*(rq profile entry is set, in addition
212 to defining the named sequences from the source folder,
214 will also define those sequences for the destination folders.
217 for information concerning the previous sequence.
225 to delete the message, the
235 or you will create an infinite loop.