blob: e3b2a88c4b75f1f6e23feb8a09030469468d9ca8 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-mailsplit(1)
2================
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-mailsplit - Simple UNIX mbox splitter program
Junio C Hamano1a4e8412005-12-27 08:17:237
8SYNOPSIS
9--------
Junio C Hamano15567bc2011-07-23 00:51:5910[verse]
Junio C Hamanoc6c919b2016-07-06 21:34:1511'git mailsplit' [-b] [-f<nn>] [-d<prec>] [--keep-cr] [--mboxrd]
12-o<directory> [--] [(<mbox>|<Maildir>)...]
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
Junio C Hamanob7ed57a2007-05-25 05:01:3016Splits a mbox file or a Maildir into a list of files: "0001" "0002" .. in the
17specified directory so you can process them further from there.
18
19IMPORTANT: Maildir splitting relies upon filenames being sorted to output
20patches in the correct order.
Junio C Hamano1a4e8412005-12-27 08:17:2321
22OPTIONS
23-------
24<mbox>::
25Mbox file to split. If not given, the mbox is read from
26the standard input.
27
Junio C Hamanob7ed57a2007-05-25 05:01:3028<Maildir>::
29Root of the Maildir to split. This directory should contain the cur, tmp
30and new subdirectories.
31
Junio C Hamano14ccc602008-06-04 23:09:2132-o<directory>::
Junio C Hamano1a4e8412005-12-27 08:17:2333Directory in which to place the individual messages.
34
35-b::
36If any file doesn't begin with a From line, assume it is a
Junio C Hamano51c2ab02006-07-09 20:38:5437single mail message instead of signaling error.
Junio C Hamano1a4e8412005-12-27 08:17:2338
39-d<prec>::
40Instead of the default 4 digits with leading zeros,
41different precision can be specified for the generated
42filenames.
43
44-f<nn>::
45Skip the first <nn> numbers, for example if -f3 is specified,
46start the numbering with 0004.
47
Junio C Hamanocaa712a2010-03-11 01:17:3548--keep-cr::
49Do not remove `\r` from lines ending with `\r\n`.
50
Junio C Hamanoc6c919b2016-07-06 21:34:1551--mboxrd::
52Input is of the "mboxrd" format and "^>+From " line escaping is
53reversed.
54
Junio C Hamano1a4e8412005-12-27 08:17:2355GIT
56---
Junio C Hamanof7c042d2008-06-06 22:50:5357Part of the linkgit:git[1] suite