{
    "mode": "man",
    "parameter": "git-mailsplit",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/git-mailsplit/1/json",
    "generated": "2026-07-07T04:37:46Z",
    "synopsis": "git mailsplit [-b] [-f<nn>] [-d<prec>] [--keep-cr] [--mboxrd]\n-o<directory> [--] [(<mbox>|<Maildir>)...]",
    "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": []
        }
    },
    "summary": "git-mailsplit - Simple UNIX mbox splitter program",
    "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": []
}