MTHREAD(1)
π¬ mthread β arrange messages into discussions π¬
okay bestie, imagine your inbox is a whole MESS of replies and nobody knows who said what to whom. that's where mthread comes in. she's the manual page for the tool that takes your chaotic pile of messages and organizes them into actual conversations, like the group chat it was always meant to be. πΈ
β¨ SYNOPSIS β¨
mthread [-vpr] [-S msg] [msgs ...]
short, sweet, iconic. periodt. π
π¦ DESCRIPTION π¦
so here's the vibe: mthread groups messages together into parent/child relationships, based on which messages are replies to which other messages. it's literally building a family tree but for emails. (if you're confused about the message argument syntax, go check mmsg(7) β she explains it all. π)
if you don't specify any messages, mthread will read filenames from the standard input. OR, if you're using it interactively, it'll just use the default sequence. no cap.
then it prints the threaded messages, separated by newlines, and indented according to their depth in the message tree. so the deeper the reply, the more it's scooted over. aesthetic and functional, honestly.
and if there are Unresolved Message-IDs? those get printed as-is. no pretending, no guessing, just raw. π
the options are as follows:
-vβ do NOT prune unresolved Message-IDs at the top-level. she's staying. she's part of the thread now. π-pβ with-S, only add parents, not unrelated subthreads. keep it focused, bestie.-rβ sort the top-level threads in reverse order (newest threads first). main character energy: the freshest drama goes on top. π₯-S msgβ treat msg as optional message(s) that will be added to threads only if they are referenced. threads where ALL messages are optional get suppressed (bye, they weren't invited π ). you can use-Sto add an outbox folder, for example β completing threads where your replies were missing. iconic use case fr fr.
pro tip from the manpage itself: -S is perfect for when you know you replied to something but the reply isn't in your current folder. the thread gets completed. chef's kiss. β¨
π EXIT STATUS π
the mthread utility exits 0 on success, and >0 if an error occurs. so like, zero means we slayed, anything above zero means something went wrong. π
π SEE ALSO π
mmsg(7)- Message threading: https://www.jwz.org/doc/threading.html
π AUTHORS π
Leah Neukirchen <leah@vuxu.org> β queen behavior, honestly. π
πΈ LICENSE πΈ
mthread is in the public domain.
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/
like... she's literally free. take her, use her, no strings. generous icon. π«Ά
and that's the whole page bestie β this one's from the Debian manual, dated May 4, 2020, filed under MTHREAD(1). go thread some messages, you got this. πβ¨π§
π¦ where this page comes from
- alpine 3.24: mblaze-doc 1.4-r0 Β· CC0-1.0
- debian bookworm: mblaze 1.1-1 Β· CC0-1.0
- debian trixie: mblaze 1.1-1 Β· CC0-1.0
- nixos 26.05: mblaze 1.4
- nixpkgs unstable: mblaze 1.4
- 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