LinuxCommandLibrary

git-mailsplit

Split mbox into individual messages

TLDR

Split mbox into messages

$ git mailsplit -o [output-dir] [mbox]
copy
Split from stdin
$ git mailsplit -o [output-dir]
copy

SYNOPSIS

git mailsplit [options] [mbox]

DESCRIPTION

git mailsplit splits an mbox file into individual email messages. Each email becomes a numbered file in the output directory, preparing patches for processing by `git am`.
The command is a plumbing tool used internally by `git am` to handle mailbox files containing multiple patches. It detects mbox format boundaries and separates each message into its own file.

PARAMETERS

MBOX

Mailbox file to split.
-o DIR
Output directory.
-b
Include mbox "From " line.
-d DIGITS
Number padding width.
-f NUM
Start numbering from N.
--keep-cr
Keep carriage returns.
--help
Display help information.

CAVEATS

Plumbing command. Usually called by git am. Output is individual email files.

HISTORY

git mailsplit is part of Git's email patch workflow, breaking mailboxes into individual messages for processing.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community