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 the cur, tmp and new subdirectories. πŸ—‚οΈ
  • -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 a From line, 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 at 0004. math! πŸ”₯
  • --keep-cr β€” do not remove \r from 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