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 by From:. who sent it.
  • -d β€” sort by date.
  • -s β€” sort by Subject: (modulo various variants of Re:). yes she accounts for all the different Re: flavors, she's thoughtful like that.
  • -F β€” sort by filename, using proper order for numbers in filenames. so 2 comes before 10, 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