<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">

<article lang="en" id="git-mailsplit(1)">
<articleinfo>
    <title>git-mailsplit(1)</title>
        <indexterm>
                <primary>git-mailsplit(1)</primary>
        </indexterm>
</articleinfo>
<simplesect id="_name">
<title>NAME</title>
<simpara>git-mailsplit - Simple UNIX mbox splitter program</simpara>
</simplesect>
<simplesect id="_synopsis">
<title>SYNOPSIS</title>
<simpara><emphasis>git mailsplit</emphasis> [-b] [-f&lt;nn&gt;] [-d&lt;prec&gt;] -o&lt;directory&gt; [--] [&lt;mbox&gt;|&lt;Maildir&gt;&#8230;]</simpara>
</simplesect>
<simplesect id="_description">
<title>DESCRIPTION</title>
<simpara>Splits a mbox file or a Maildir into a list of files: "0001" "0002" ..  in the
specified directory so you can process them further from there.</simpara>
<important><simpara>Maildir splitting relies upon filenames being sorted to output
patches in the correct order.</simpara></important>
</simplesect>
<simplesect id="_options">
<title>OPTIONS</title>
<variablelist>
<varlistentry>
<term>
&lt;mbox&gt;
</term>
<listitem>
<simpara>
        Mbox file to split.  If not given, the mbox is read from
        the standard input.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
&lt;Maildir&gt;
</term>
<listitem>
<simpara>
        Root of the Maildir to split. This directory should contain the cur, tmp
        and new subdirectories.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
-o&lt;directory&gt;
</term>
<listitem>
<simpara>
        Directory in which to place the individual messages.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
-b
</term>
<listitem>
<simpara>
        If any file doesn&#8217;t begin with a From line, assume it is a
        single mail message instead of signaling error.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
-d&lt;prec&gt;
</term>
<listitem>
<simpara>
        Instead of the default 4 digits with leading zeros,
        different precision can be specified for the generated
        filenames.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term>
-f&lt;nn&gt;
</term>
<listitem>
<simpara>
        Skip the first &lt;nn&gt; numbers, for example if -f3 is specified,
        start the numbering with 0004.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</simplesect>
<simplesect id="_author">
<title>Author</title>
<simpara>Written by Linus Torvalds &lt;<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>&gt;
and Junio C Hamano &lt;<ulink url="mailto:gitster@pobox.com">gitster@pobox.com</ulink>&gt;</simpara>
</simplesect>
<simplesect id="_documentation">
<title>Documentation</title>
<simpara>Documentation by Junio C Hamano and the git-list &lt;<ulink url="mailto:git@vger.kernel.org">git@vger.kernel.org</ulink>&gt;.</simpara>
</simplesect>
<simplesect id="_git">
<title>GIT</title>
<simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
</simplesect>
</article>
