1 .TH SORTM %manext1% "March 23, 2014" "%nmhversion%"
15 .RB [ \-all " | " \-noall ]
24 .RB [ \-check " | " \-nocheck ]
25 .RB [ \-verbose " | " \-noverbose ]
29 sorts the specified messages in the named folder according
30 to the chronological order of the \*(lqDate:\*(rq field of each message.
32 If no messages are specified, the default is all messages in the folder.
33 However, if no messages are specified and the
35 switch is enabled, then
37 reports that as an error and exits with non-zero status.
39 is most useful in the user's profile, to avoid inadvertent sorting of
42 switch can then be used on the command line to disable it. Of course,
43 a message specification of
45 can be used in any case.
51 to tell the user the general
52 actions that it is taking to place the folder in sorted order.
59 the name of the field to
60 use when making the date comparison. If the user has a special field in
61 each message, such as \*(lqBB\-Posted:\*(rq or \*(lqDelivery\-Date:\*(rq,
64 switch can be used to direct
66 which field to examine.
73 to sort messages by the specified text field. All characters except
74 letters and numbers are stripped and the resulting strings are sorted
75 datefield\-major, textfield\-minor, using a case insensitive
76 comparison. If this field is \*(lqsubject\*(rq, any leading "re:" is
85 is specified, messages
86 with the same textfields that are dated within `days' of each other
87 appear together. Specifying
89 makes the limit infinity.
93 the sort is instead simply textfield\-major.
95 For example, to order a folder by date-major, grouping messages with
96 the same subject on the same date together, use:
99 sortm -textfield subject +folder
103 always issues a warning for each message that is missing a
104 \*(lqDate:\*(rq field, has a \*(lqDate:\*(rq field that cannot be
105 parsed, or has a format error in any header field. With the
109 inhibits all modifications to the folder if there are any such
110 messages, and exits with non-zero status. With the default of
113 sorts messages with a missing or invalid
114 \*(lqDate:\*(rq field using their file modification times.
116 When ordering messages based on their dates, if they have the same
117 dates, their original message order is preserved.
121 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
122 ^$HOME/\&.mh\(ruprofile~^The user profile
124 .SH "PROFILE COMPONENTS"
128 .ta \w'ExtraBigProfileName 'u
129 ^Path:~^To determine the user's nmh directory
130 ^Current\-Folder:~^To find the default current folder
136 .RB ` +folder "' defaults to the current folder"
137 .RB ` msgs"' defaults to all without -noall, no default with -noall"
139 .RB ` \-datefield "' defaults to date"
140 .RB ` \-notextfield '
146 If a folder is given, it will become the current folder. If the current
149 will preserve its status as current.
151 Timezones used to be ignored when comparing dates: they aren't any more.
153 Messages which were in the folder, but not specified by `msgs', used to
154 be moved to the end of the folder; now such messages are left untouched.
157 sometimes did not preserve the message numbering in a folder
158 (e.g., messages 1, 3, and 5, might have been renumbered to 1, 2, 3 after
159 sorting). This was a bug, and has been fixed. To compress the message
160 numbering in a folder, use
161 .RB \*(lq "folder\ \-pack" \*(rq
166 complains about a message which it can't temporally
167 order, it complains about the message number
170 It should indicate what the message number will be