SORTM(1)
π SORTM(1) β the girlies are sorting their mail
okay so bestie, this is sortm, a General Commands Manual icon from the nmh world, and she sorts messages in a folder by date. periodt.
β¨ NAME β¨
sortm β sort nmh messages π¦
πΈ SYNOPSIS πΈ
sortm [-help] [-version] [+folder] [msgs] [-all | -noall] [-datefield
field] [-textfield field] [-notextfield] [-limit days] [-nolimit]
[-check | -nocheck] [-verbose | -noverbose]
π DESCRIPTION π
sortm sorts the messages you specify in the folder you name, and it does it in chronological order based on the Date: field of each message. no cap, that's the whole vibe.
If you don't specify any messages, the default is all messages in the folder. BUT β and this is the plot twist β if you don't specify messages and the -noall switch is enabled, then sortm reports that as an error and exits with a non-zero status. π -noall is most useful in the user's profile, to avoid inadvertent sorting of an entire folder. Then you can just throw -all on the command line to disable it. And of course, a message specification of all can be used in any case. slay.
The -verbose switch directs sortm to tell the user the general actions that it is taking to place the folder in sorted order. it's giving narrator energy.
The -datefield field switch tells sortm the name of the field to use when making the date comparison. If the user has a special field in each message, such as BB-Posted: or Delivery-Date:, then the -datefield switch can be used to direct sortm which field to examine. iconic.
The -textfield field switch causes sortm to sort messages by the specified text field. All characters except letters and numbers are stripped and the resulting strings are sorted datefield-major, textfield-minor, using a case insensitive comparison. If this field is subject, any leading re: is stripped off. π
With -textfield field, if -limit days is specified, messages with the same textfields that are dated within days of each other appear together. Specifying -nolimit makes the limit infinity. With -limit 0, the sort is instead simply textfield-major. obsessed.
For example, to order a folder by date-major, grouping messages with the same subject on the same date together, use:
sortm -textfield subject +folder
sortm always issues a warning for each message that is missing a Date: field, has a Date: field that cannot be parsed, or has a format error in any header field. With the -check switch, sortm inhibits all modifications to the folder if there are any such messages, and exits with non-zero status. With the default of -nocheck, sortm sorts messages with a missing or invalid Date: field using their file modification times. π
When ordering messages based on their dates, if they have the same dates, their original message order is preserved. the way that she respects the og order? we love to see it.
π FILES π
$HOME/.mh_profileβ The user profile
π§ PROFILE COMPONENTS π§
Path:β To determine the user's nmh directoryCurrent-Folder:β To find the default current folder
π SEE ALSO π
β DEFAULTS β
+folderdefaults to the current foldermsgsdefaults to all without-noall, has no default with-noall-all-datefielddefaults todate-notextfield-noverbose-nolimit-nocheck
π«Ά CONTEXT π«Ά
If a folder is given, it will become the current folder. If the current message is moved, sortm will preserve its status as current. main character message stays main character. π
π HISTORY π
Timezones used to be ignored when comparing dates: they aren't any more. glow up fr fr.
Messages which were in the folder, but not specified by msgs, used to be moved to the end of the folder; now such messages are left untouched. no more disrespect.
sortm sometimes did not preserve the message numbering in a folder (e.g., messages 1, 3, and 5, might have been renumbered to 1, 2, 3 after sorting). This was a bug, and has been fixed. To compress the message numbering in a folder, use folder -pack as always.
π BUGS π
When sortm complains about a message which it can't temporally order, it complains about the message number prior to sorting. It should indicate what the message number will be after sorting. so she's a little confused but she's got the spirit. π₯²
this whole page is from <strong>nmh-1.8</strong>, dated <strong>2014-03-23</strong> β and that's the manual, bestie. go sort something. bye πβ¨
π¦ where this page comes from
- alpine 3.24: nmh-doc 1.8-r3 Β· BSD-3-Clause
- epel 10: nmh 1.8-3.el10_1 Β· BSD
- epel 9: nmh 1.8-1.el9 Β· BSD
- fedora 43: nmh 1.8-9.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: nmh 1.8-10.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms