GIT-MAILSPLIT(1)
π GIT-MAILSPLIT(1) π
okay bestie, welcome to git-mailsplit β the simple UNIX mbox splitter program, and when I say simple I mean it does one thing and it slays at it β¨
πΈ SYNOPSIS πΈ
git mailsplit [-b] [-f<nn>] [-d<prec>] [--keep-cr] [--mboxrd]
-o<directory> [--] [(<mbox>|<Maildir>)...]
π DESCRIPTION π
So here's the vibe: this little icon takes a mbox file or a Maildir and splits it into a whole list of files β "0001", "0002", and so on β all dropped into the directory you specify. Then you can go process them from there whenever you're ready. Literally the ultimate glow-up for a giant blob of mail π
β οΈ Important, fr fr: Maildir splitting relies upon filenames being sorted to output patches in the correct order. No cap β if the sorting's off, the order's off. π«Ά
β¨ OPTIONS β¨
<mbox>β the mbox file you wanna split. If you don't hand one over, it just reads the mbox from standard input. lowkey chill of it.<Maildir>β the root of the Maildir you're splitting. Heads up: this directory should contain thecur,tmpandnewsubdirectories. ποΈ-o<directory>β the directory where all the individual messages get placed. yes you need this, it's not optional bestie.-bβ if any file doesn't start with aFromline, just assume it's a single mail message instead of throwing an error. forgiving queen behavior π-d<prec>β the default is 4 digits with leading zeros, but you can specify a different precision for the generated filenames if 4 isn't your moment.-f<nn>β skip the first <nn> numbers. so like, if you pass-f3, the numbering starts at0004. math! π₯--keep-crβ do not remove\rfrom lines ending with\r\n. keep that carriage return, let it live its life π--mboxrdβ tells it the input is in"mboxrd"format, and that"^>+From "line escaping is reversed. iykyk π¦
π GIT π
Part of the git(1) suite β one of the icons in the family. β
and that's the whole page, bestie π§ β this was GIT-MAILSPLIT(1) from Git 2.56.0, dated 2026-09-27, mwah π
π¦ where this page comes from
- arch rolling: git 2.56.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms