source: trunk/third/nmh/man/refile.man @ 12455

Revision 12455, 5.2 KB checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1.\"
2.\" %nmhwarning%
3.\" $Id: refile.man,v 1.1.1.1 1999-02-07 18:14:22 danw Exp $
4.\"
5.\" include the -mh macro file
6.so %etcdir%/tmac.h
7.\"
8.TH REFILE %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10refile \- file message in other folders
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14refile
15\%[msgs]
16\%[\-draft]
17\%[\-link] \%[\-nolink]
18.br
19\%[\-preserve] \%[\-nopreserve]
20\%[\-unlink] \%[\-nounlink]
21.br
22\%[\-src\ +folder]
23\%[\-file\ file]
24\%[\-rmmproc program]
25.br
26\%[\-normmproc]
27+folder1 ...
28\%[\-version]
29\%[\-help]
30.in -.5i
31.SH DESCRIPTION
32\fIRefile\fR moves (\fImv\fR\0(1)) or links (\fIln\fR\0(1)) messages
33from a source folder into one or more destination folders.
34
35If you think of a message as a sheet of paper, this operation is not
36unlike filing the sheet of paper (or copies) in file cabinet folders.
37When a message is filed, it is linked into the destination folder(s)
38if possible, and is copied otherwise.  As long as the destination
39folders are all on the same file system, multiple filing causes little
40storage overhead.  This facility provides a good way to cross\-file or
41multiply\-index messages.  For example, if a message is received from
42Jones about the ARPA Map Project, the command
43
44     refile\0cur\0+jones\0+Map
45
46would allow the message to be found in either of the two folders `jones'
47or `Map'.
48
49You may specify the source folder using `\-src\ +folder'.  If this is
50not given, the current folder is used by default.  If no message is
51specified, then `cur' is used by default.
52
53The option `\-file\ file' directs \fIrefile\fR to use the specified file
54as the source message to be filed, rather than a message from a folder.
55Note that the file should be a validly formatted message, just like
56any other \fInmh\fR message.  It should \fBNOT\fR be in mail drop format
57(to convert a file in mail drop format to a folder of \fInmh\fR messages,
58see \fIinc\fR\0(1)).
59
60If a destination folder doesn't exist, \fIrefile\fR will ask if you want
61to create it.  A negative response will abort the file operation.  If the
62standard input for \fIrefile\fR is \fInot\fR a tty, then \fIrefile\fR
63will not ask any questions and will proceed as if the user answered
64\*(lqyes\*(rq to all questions.
65
66The option `\-link' preserves the source folder copy of the message (i.e.,
67it does a \fIln\fR(1) rather than a \fImv\fR(1)), whereas, `\-nolink'
68(the default) deletes the filed messages from the source folder.
69
70Normally when a message is refiled, for each destination folder it
71is assigned the number which is one above the current highest message
72number in that folder.  Use of the `\-preserve' switch will override
73this message renaming, and try to preserve the number of the message.
74If a conflict for a particular folder occurs when using the `\-preserve'
75switch, then \fIrefile\fR will use the next available message number
76which is above the message number you wish to preserve.
77
78If `\-link' is not specified (or `\-nolink' is specified), the filed
79messages will be removed from the source folder.  The default is to
80remove these messages by renaming them with a site-dependent prefix
81(usually a comma).  Such files will then need to be removed in some
82manner after a certain amount of time.  Many sites arrange for
83\fIcron\fR\0(8) to remove these files once a day, so check with your
84system administrator.
85
86Alternately, if you wish for \fIrefile\fR to really remove the files
87representing these messages from the source folder, you can use the
88`-unlink' switch (not to be confused with the -link switch).  But
89messages removed by this method cannot be later recovered.
90
91.ne 4
92If you prefer a more sophisticated method of `removing' the messages
93from the source folder, you can define the \fIrmmproc\fR profile
94component.  For example, you can add a profile component such as
95
96        rmmproc:        /home/coleman/bin/rmm_msgs
97
98then \fIrefile\fR will instead call the named program or script to
99handle the message files.
100
101The user may specify `\-rmmproc program' on the command line to
102override this profile specification.  The `-normmproc' option forces
103the message files to be deleted by renaming or unlinking them as
104described above.
105
106The `\-draft' switch tells \fIrefile\fR to file the <mh\-dir>/draft.
107.Fi
108^$HOME/\&.mh\(ruprofile~^The user profile
109.Pr
110^Path:~^To determine the user's nmh directory
111.Ps
112^Current\-Folder:~^To find the default current folder
113.Ps
114^Folder\-Protect:~^To set mode when creating a new folder
115.Ps
116^rmmproc:~^Program to delete the message
117.Sa
118folder(1), rmf(1), rmm(1)
119.De
120`\-src\ +folder' defaults to the current folder
121.Ds
122`msgs' defaults to cur
123.Ds
124`\-nolink'
125.Ds
126`\-nounlink'
127.Ds
128`\-nopreserve'
129.Co
130If `\-src\ +folder' is given, it will become the current folder.
131If neither `\-link' nor `all' is specified, the current message in the
132source folder will be set to the last message specified; otherwise, the
133current message won't be changed.
134
135If the Previous\-Sequence profile entry is set, in addition to defining
136the named sequences from the source folder, \fIrefile\fR will also define
137those sequences for the destination folders.  See \fImh\-sequence\fR\0(5)
138for information concerning the previous sequence.
139.Bu
140Since \fIrefile\fR uses your \fIrmmproc\fP to delete the message,
141the \fIrmmproc\fP must \fBNOT\fP call \fIrefile\fP without specifying
142`\-normmproc', or you will create an infinite loop.
143.En
Note: See TracBrowser for help on using the repository browser.