MSORT(1)
π MSORT(1) β bestie edition π
okay so this is the manual page for msort, from the General Commands Manual section of your local man collection. she's little, she's mighty, she sorts your mail. let's get into it π
β¨ NAME β¨
msort β sort messages. that's it. that's the whole job. iconic behavior honestly.
πΈ SYNOPSIS πΈ
msort [-r] [-f | -d | -s | -F | -M | -S | -U | -I] [msgs ...]
look at her. tiny. perfect. the brackets are doing a lot of heavy lifting but she's got range π
π¦ DESCRIPTION π¦
so like, msort sorts messages according to various orders, and then prints the resulting message names, separated by newlines. that's the output: just names, one per line, newline-separated. clean. minimal. main character energy.
(if you're wondering how to spell out what a message even is, see mmsg(7) for the message argument syntax. she explains it all, go read her.)
if no messages are specified, msort will read filenames from the standard input β or, if you're using it interactively, she'll use the default sequence instead. no cap.
The options are as follows:
-rβ reverse order. flip the whole thing around, it's giving backwards π«-fβ sort byFrom:. who sent it.-dβ sort by date.-sβ sort bySubject:(modulo various variants ofRe:). yes she accounts for all the differentRe:flavors, she's thoughtful like that.-Fβ sort by filename, using proper order for numbers in filenames. so2comes before10, like a civilized sort would do π-Mβ sort by message file modification time.-Sβ sort by message file size.-Uβ sort unread messages after read messages. unread goes to the bottom, read rises to the top π-Iβ sort flagged messages before unflagged messages. flagged stays winning π
π EXIT STATUS π
the msort utility exits 0 on success, and >0 if an error occurs. so like, zero means we ate, anything above zero means something went wrong. periodt.
π₯ SEE ALSO π₯
mmsg(7)β go read her, she's the whole reason the message syntax makes sense π«Ά
π AUTHORS π
Leah Neukirchen <leah@vuxu.org> β the genius behind all of this, we stan π
π LICENSE π
msort is in the public domain. literally free. no strings.
To the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.
http://creativecommons.org/publicdomain/zero/1.0/ β that's CC0, go look, it's the most generous license to ever exist π
and that's the whole page bestie!! this one shipped with Debian, dated July 22, 2016, and the page itself answers to the name MSORT(1) in the General Commands Manual section π sort those messages, you got this πβ¨
π¦ where this page comes from
- debian bookworm: mblaze 1.1-1 Β· CC0-1.0
- debian trixie: mblaze 1.1-1 Β· CC0-1.0
- ubuntu jammy: mblaze 1.1-1 Β· CC0-1.0
- ubuntu noble: mblaze 1.1-1 Β· CC0-1.0
- ubuntu resolute: mblaze 1.1-1build1 Β· CC0-1.0
- ubuntu stonking: mblaze 1.1-1build1 Β· CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms