1 .TH SORTM %manext1% "October 27, 2012" "%nmhversion%"
13 .RB [ \-all " | " \-noall ]
22 .RB [ \-check " | " \-nocheck ]
23 .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 inadvertant 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.
118 .ta \w'%etcdir%/ExtraBigFileName 'u
119 ^$HOME/\&.mh\(ruprofile~^The user profile
121 .SH "PROFILE COMPONENTS"
125 .ta \w'ExtraBigProfileName 'u
126 ^Path:~^To determine the user's nmh directory
127 ^Current\-Folder:~^To find the default current folder
133 .RB ` +folder "' defaults to the current folder"
134 .RB ` msgs"' defaults to all without -noall, no default with -noall"
136 .RB ` \-datefield "' defaults to date"
137 .RB ` \-notextfield '
143 If a folder is given, it will become the current folder. If the current
146 will preserve its status as current.
148 Timezones used to be ignored when comparing dates: they aren't any more.
150 Messages which were in the folder, but not specified by `msgs', used to
151 be moved to the end of the folder; now such messages are left untouched.
154 sometimes did not preserve the message numbering in a folder
155 (e.g., messages 1, 3, and 5, might have been renumbered to 1, 2, 3 after
156 sorting). This was a bug, and has been fixed. To compress the message
157 numbering in a folder, use
158 .RB \*(lq "folder\ \-pack" \*(rq
163 complains about a message which it can't temporally
164 order, it complains about the message number
167 It should indicate what the message number will be