5 .TH SORTM %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
21 .RB [ \-verbose " | " \-noverbose ]
26 sorts the specified messages in the named folder according
27 to the chronological order of the \*(lqDate:\*(rq field of each message.
33 to tell the user the general
34 actions that it is taking to place the folder in sorted order.
41 the name of the field to
42 use when making the date comparison. If the user has a special field in
43 each message, such as \*(lqBB\-Posted:\*(rq or \*(lqDelivery\-Date:\*(rq,
46 switch can be used to direct
48 which field to examine.
56 by the specified text field. If this field is \*(lqsubject\*(rq, any
57 leading "re:" is stripped off. In any case, all characters except
58 letters and numbers are stripped and the resulting strings are sorted
59 datefield\-major, textfield\-minor, using a case insensitive comparison.
67 is specified, messages
68 with similar textfields that are dated within `days' of each other
69 appear together. Specifying
71 makes the limit infinity.
75 the sort is instead made textfield\-major, date\-minor.
77 For example, to order a folder by date-major, subject-minor, use:
80 sortm -textfield subject +folder
86 .ta \w'/usr/local/nmh/etc/ExtraBigFileName 'u
87 ^$HOME/\&.mh\(ruprofile~^The user profile
90 .SH "PROFILE COMPONENTS"
94 .ta \w'ExtraBigProfileName 'u
95 ^Path:~^To determine the user's nmh directory
96 ^Current\-Folder:~^To find the default current folder
104 .RB ` +folder "' defaults to the current folder"
105 .RB ` msgs"' defaults to all"
106 .RB ` \-datefield "' defaults to date"
107 .RB ` \-notextfield '
113 If a folder is given, it will become the current folder. If the current
116 will preserve its status as current.
119 Timezones used to be ignored when comparing dates: they aren't any more.
121 Messages which were in the folder, but not specified by `msgs', used to
122 be moved to the end of the folder; now such messages are left untouched.
125 sometimes did not preserve the message numbering in a folder
126 (e.g., messages 1, 3, and 5, might have been renumbered to 1, 2, 3 after
127 sorting). This was a bug, and has been fixed. To compress the message
128 numbering in a folder, use
129 .RB \*(lq "folder\ \-pack" \*(rq
135 encounters a message without a date\-field, or if the
136 message has a date\-field that
140 attempts to keep the message in the same relative position. This does
141 not always work. For instance, if the first message encountered lacks
142 a date which can be parsed, then it will usually be placed at the end
143 of the messages being sorted.
147 complains about a message which it can't temporally
148 order, it complains about the message number
151 It should indicate what the message number will be