{
    "content": [
        {
            "type": "text",
            "text": "# git-mailsplit (man)\n\n## NAME\n\ngit-mailsplit - Simple UNIX mbox splitter program\n\n## SYNOPSIS\n\ngit mailsplit [-b] [-f<nn>] [-d<prec>] [--keep-cr] [--mboxrd]\n-o<directory> [--] [(<mbox>|<Maildir>)...]\n\n## DESCRIPTION\n\nSplits a mbox file or a Maildir into a list of files: \"0001\" \"0002\" .. in the specified\ndirectory so you can process them further from there.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (6 subsections)\n- **GIT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "git-mailsplit",
        "section": "",
        "mode": "man",
        "summary": "git-mailsplit - Simple UNIX mbox splitter program",
        "synopsis": "git mailsplit [-b] [-f<nn>] [-d<prec>] [--keep-cr] [--mboxrd]\n-o<directory> [--] [(<mbox>|<Maildir>)...]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Directory in which to place the individual messages."
            },
            {
                "flag": "-b",
                "long": null,
                "arg": null,
                "description": "If any file doesn’t begin with a From line, assume it is a single mail message instead of signaling error."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Instead of the default 4 digits with leading zeros, different precision can be specified for the generated filenames."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Skip the first <nn> numbers, for example if -f3 is specified, start the numbering with 0004."
            },
            {
                "flag": "",
                "long": "--keep-cr",
                "arg": null,
                "description": "Do not remove \\r from lines ending with \\r\\n."
            },
            {
                "flag": "",
                "long": "--mboxrd",
                "arg": null,
                "description": "Input is of the \"mboxrd\" format and \"^>+From \" line escaping is reversed."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 7,
                "subsections": [
                    {
                        "name": "-o<directory>",
                        "lines": 2
                    },
                    {
                        "name": "-b",
                        "lines": 3,
                        "flag": "-b"
                    },
                    {
                        "name": "-d<prec>",
                        "lines": 3
                    },
                    {
                        "name": "-f<nn>",
                        "lines": 3
                    },
                    {
                        "name": "--keep-cr",
                        "lines": 2,
                        "long": "--keep-cr"
                    },
                    {
                        "name": "--mboxrd",
                        "lines": 2,
                        "long": "--mboxrd"
                    }
                ]
            },
            {
                "name": "GIT",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "git-mailsplit - Simple UNIX mbox splitter program\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "git mailsplit [-b] [-f<nn>] [-d<prec>] [--keep-cr] [--mboxrd]\n-o<directory> [--] [(<mbox>|<Maildir>)...]\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Splits a mbox file or a Maildir into a list of files: \"0001\" \"0002\" .. in the specified\ndirectory so you can process them further from there.\n\nImportant\nMaildir splitting relies upon filenames being sorted to output patches in the correct\norder.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "<mbox>\nMbox file to split. If not given, the mbox is read from the standard input.\n\n<Maildir>\nRoot of the Maildir to split. This directory should contain the cur, tmp and new\nsubdirectories.\n",
                "subsections": [
                    {
                        "name": "-o<directory>",
                        "content": "Directory in which to place the individual messages.\n"
                    },
                    {
                        "name": "-b",
                        "content": "If any file doesn’t begin with a From line, assume it is a single mail message instead of\nsignaling error.\n",
                        "flag": "-b"
                    },
                    {
                        "name": "-d<prec>",
                        "content": "Instead of the default 4 digits with leading zeros, different precision can be specified\nfor the generated filenames.\n"
                    },
                    {
                        "name": "-f<nn>",
                        "content": "Skip the first <nn> numbers, for example if -f3 is specified, start the numbering with\n0004.\n"
                    },
                    {
                        "name": "--keep-cr",
                        "content": "Do not remove \\r from lines ending with \\r\\n.\n",
                        "long": "--keep-cr"
                    },
                    {
                        "name": "--mboxrd",
                        "content": "Input is of the \"mboxrd\" format and \"^>+From \" line escaping is reversed.\n",
                        "long": "--mboxrd"
                    }
                ]
            },
            "GIT": {
                "content": "Part of the git(1) suite\n\n\n\nGit 2.34.1                                   02/26/2026                             GIT-MAILSPLIT(1)",
                "subsections": []
            }
        }
    }
}