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

Revision 12455, 3.3 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: sortm.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 SORTM %manext1% MH.6.8 [%nmhversion%]
9.SH NAME
10sortm \- sort messages
11.SH SYNOPSIS
12.in +.5i
13.ti -.5i
14sortm
15\%[+folder] \%[msgs]
16\%[\-datefield\ field]
17\%[\-textfield\ field]
18.br
19\%[\-notextfield]
20\%[\-limit days] \%[\-nolimit]
21\%[\-verbose]
22.br
23\%[\-noverbose]
24\%[\-version]
25\%[\-help]
26.in -.5i
27.SH DESCRIPTION
28\fISortm\fR sorts the specified messages in the named folder according
29to the chronological order of the \*(lqDate:\*(rq field of each message.
30
31The `\-verbose' switch directs \fIsortm\fR to tell the user the general
32actions that it is taking to place the folder in sorted order.
33
34The `\-datefield\ field' switch tells \fIsortm\fR the name of the field to
35use when making the date comparison.  If the user has a special field in
36each message, such as \*(lqBB\-Posted:\*(rq or \*(lqDelivery\-Date:\*(rq,
37then the `\-datefield' switch can be used to direct \fIsortm\fR which
38field to examine.
39
40The `\-textfield\ field' switch causes \fIsortm\fR to sort messages
41by the specified text field.  If this field is \*(lqsubject\*(rq, any
42leading "re:" is stripped off.  In any case, all characters except
43letters and numbers are stripped and the resulting strings are sorted
44datefield\-major, textfield\-minor, using a case insensitive comparison.
45
46With `\-textfield\ field', if `\-limit\ days' is specified, messages
47with similar textfields that are dated within `days' of each other
48appear together.  Specifying `\-nolimit' makes the limit infinity.
49With `\-limit 0', the sort is instead made textfield\-major, date\-minor.
50
51.\"Ex
52For example, to order a folder by date-major, subject-minor, use:
53
54.ti +.5i
55sortm -textfield subject +folder
56
57.Fi
58^$HOME/\&.mh\(ruprofile~^The user profile
59.Pr
60^Path:~^To determine the user's nmh directory
61.Ps
62^Current\-Folder:~^To find the default current folder
63.Sa
64folder (1)
65.De
66`+folder' defaults to the current folder
67.Ds
68`msgs' defaults to all
69.Ds
70`\-datefield date'
71.Ds
72`\-notextfield'
73.Ds
74`\-noverbose'
75.Ds
76`\-nolimit'
77.Co
78If a folder is given, it will become the current folder.  If the current
79message is moved, \fIsortm\fR will preserve its status as current.
80.Hi
81Timezones used to be ignored when comparing dates: they aren't any more.
82
83Messages which were in the folder, but not specified by `msgs', used to
84be moved to the end of the folder; now such messages are left untouched.
85
86\fISortm\fP sometimes did not preserve the message numbering in a folder
87(e.g., messages 1, 3, and 5, might have been renumbered to 1, 2, 3 after
88sorting).  This was a bug, and has been fixed.  To compress the message
89numbering in a folder, use \*(lq\fIfolder\ \-pack\fR\|\*(rq as always.
90.Bu
91If \fIsortm\fR encounters a message without a date\-field, or if the
92message has a date\-field that \fIsortm\fR cannot parse, then \fIsortm\fR
93attempts to keep the message in the same relative position.  This does
94not always work.  For instance, if the first message encountered lacks
95a date which can be parsed, then it will usually be placed at the end
96of the messages being sorted.
97
98When \fIsortm\fR complains about a message which it can't temporally
99order, it complains about the message number \fIprior\fR to sorting.
100It should indicate what the message number will be \fIafter\fR sorting.
101.En
Note: See TracBrowser for help on using the repository browser.