Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / sortm.rf,v
1 head    1.9;
2 access;
3 symbols;
4 locks; strict;
5
6
7 1.9
8 date    93.08.27.20.21.19;      author jromine; state Exp;
9 branches;
10 next    1.8;
11
12 1.8
13 date    90.04.05.15.15.26;      author sources; state Exp;
14 branches;
15 next    1.7;
16
17 1.7
18 date    90.03.28.10.48.27;      author sources; state Exp;
19 branches;
20 next    1.6;
21
22 1.6
23 date    90.03.23.13.43.25;      author sources; state Exp;
24 branches;
25 next    1.5;
26
27 1.5
28 date    90.03.22.15.01.28;      author sources; state Exp;
29 branches;
30 next    1.4;
31
32 1.4
33 date    90.03.22.11.31.53;      author sources; state Exp;
34 branches;
35 next    1.3;
36
37 1.3
38 date    90.03.20.19.42.36;      author sources; state Exp;
39 branches;
40 next    1.2;
41
42 1.2
43 date    90.03.20.17.36.51;      author sources; state Exp;
44 branches;
45 next    1.1;
46
47 1.1
48 date    90.03.20.17.21.31;      author sources; state Exp;
49 branches;
50 next    ;
51
52
53 desc
54 @@
55
56
57 1.9
58 log
59 @change comments about the lack of "-pack"
60 @
61 text
62 @.\"    @@(MHWARNING)
63 .\" @@(#)$Id: sortm.rf,v 1.8 1990/04/05 15:15:26 sources Exp jromine $
64 .SC SORTM 1
65 .NA
66 sortm \- sort messages
67 .SY
68 sortm
69 \%[+folder] \%[msgs]
70 \%[\-datefield\ field]
71 \%[\-textfield\ field] \%[\-notextfield]
72 \%[\-limit days] \%[\-nolimit]
73 \%[\-verbose] \%[\-noverbose]
74 \%[\-help]
75 .DE
76 \fISortm\fR sorts the specified messages in the named folder according
77 to the chronological order of the \*(lqDate:\*(rq field of each message.
78
79 The `\-verbose' switch directs \fIsortm\fR to tell the user the general
80 actions that it is taking to place the folder in sorted order.
81
82 The `\-datefield\ field' switch tells \fIsortm\fR the name of the field
83 to use when making the date comparison.
84 If the user has a special field in each message,
85 such as \*(lqBB\-Posted:\*(rq or \*(lqDelivery\-Date:\*(rq,
86 then the `\-datefield' switch can be used to direct \fIsortm\fR which
87 field to examine.
88
89 The `\-textfield\ field' switch causes \fIsortm\fR to sort messages by 
90 the specified text field.
91 If this field is \*(lqsubject\*(rq,
92 any leading "re:" is stripped off.
93 In any case, all characters except letters and numbers are stripped
94 and the resulting strings are sorted 
95 datefield\-major, textfield\-minor,
96 using a case insensitive comparison.
97
98 With `\-textfield\ field', 
99 if `\-limit\ days' is specified, messages with similar textfields
100 that are dated within `days' of each other appear together.
101 Specifying `\-nolimit' makes the limit infinity.
102 With `\-limit 0', the sort is instead made textfield\-major, date\-minor.
103
104 .\"Ex
105 For example, to order a folder by date-major, subject-minor, use:
106
107 .ti +.5i
108 sortm -textfield subject +folder
109
110 .Fi
111 ^$HOME/\&.mh\(ruprofile~^The user profile
112 .Pr
113 ^Path:~^To determine the user's MH directory
114 .Ps
115 ^Current\-Folder:~^To find the default current folder
116 .Sa
117 folder (1)
118 .De
119 `+folder' defaults to the current folder
120 .Ds
121 `msgs' defaults to all
122 .Ds
123 `\-datefield date'
124 .Ds
125 `\-notextfield'
126 .Ds
127 `\-noverbose'
128 .Ds
129 `\-nolimit'
130 .Co
131 If a folder is given, it will become the current folder.
132 If the current message is moved, \fIsortm\fR will preserve its status
133 as current.
134 .Hi
135 Timezones used to be ignored when comparing dates:
136 they aren't any more.
137
138 Messages which were in the folder, but not specified by `msgs',
139 used to be moved to the end of the folder;
140 now such messages are left untouched.
141
142 \fISortm\fP sometimes did not preserve the message
143 numbering in a folder (e.g., messages
144 1, 3, and 5, might have been renumbered
145 to 1, 2, 3 after sorting).
146 This was a bug, and has been fixed.
147 To compress the message numbering in a folder, use
148 \*(lq\fIfolder\ \-pack\fR\|\*(rq as always.
149 .Bu
150 If \fIsortm\fR encounters a message without a date\-field,
151 or if the message has a date\-field that \fIsortm\fR cannot parse,
152 then \fIsortm\fR attempts to keep the message in the same relative
153 position.
154 This does not always work.
155 For instance, if the first message encountered lacks a date which can be
156 parsed,
157 then it will usually be placed at the end of the messages being sorted.
158
159 When \fIsortm\fR complains about a message which it can't temporally order,
160 it complains about the message number \fIprior\fR to sorting.
161 It should indicate what the message number will be \fIafter\fR sorting.
162 .En
163 @
164
165
166 1.8
167 log
168 @add ID
169 @
170 text
171 @d2 1
172 a2 1
173 .\" @@(#)$Id:$
174 d81 7
175 a87 7
176 Previously,
177 \fIsortm\fR would try to fill any gaps in a folder within the
178 range of messages it sorted. 
179 To improve performance,
180 \fIsortm\fR now minimizes the number of message moves.
181 To pack a folder, use
182 \*(lq\fIfolder\ \-pack\fR\|\*(rq instead.
183 @
184
185
186 1.7
187 log
188 @add some history
189 @
190 text
191 @d2 1
192 @
193
194
195 1.6
196 log
197 @fixup
198 @
199 text
200 @a15 4
201 Messages which are in the folder, but not specified by `msgs',
202 are moved to the end of the folder.
203 If a message does not exist (the folder has a gap),
204 \fIsortm\fR may fill the gap if convenient.
205 d39 2
206 a40 1
207 With `\-limit 0', the sort is made textfield\-major, date\-minor.
208 d75 12
209 @
210
211
212 1.5
213 log
214 @document -subject
215 @
216 text
217 @d9 2
218 a11 2
219 \%[\-subject]
220 \%[\-limit days] \%[\-nolimit]
221 d31 20
222 a50 5
223 The `\-subject' switch causes \fIsortm\fR to sort messages by subject;
224 the leading "re:" and all characters except letters are stripped and the
225 resulting strings are sorted using a case insensitive comparison. If
226 `\-limit\ days' is specified, messages with similar subjects that are
227 dated within `days' of each other appear together.
228 d66 2
229 a68 2
230 .Ds
231 `\-nosubject'
232 @
233
234
235 1.4
236 log
237 @put things back, do .NA stuff another way
238 @
239 text
240 @d10 2
241 d30 6
242 d52 4
243 d73 1
244 a73 1
245 When \fIsortm\fR complains about a message which it can't temporarlly order,
246 @
247
248
249 1.3
250 log
251 @typo
252 @
253 text
254 @d2 2
255 a3 2
256 .TH SORTM 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
257 .SH .NA
258 d5 1
259 a5 1
260 .SH .SY
261 @
262
263
264 1.2
265 log
266 @fixup for makewhatis
267 @
268 text
269 @d2 1
270 a2 1
271 .TH SORTM 1 [mh.6] MH
272 @
273
274
275 1.1
276 log
277 @Initial revision
278 @
279 text
280 @d2 2
281 a3 2
282 .SC SORTM 1
283 .NA
284 d5 1
285 a5 1
286 .SY
287 @