Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-mailsplit(1) |
| 2 | ================ |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-mailsplit - Simple UNIX mbox splitter program |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 10 | [verse] |
Junio C Hamano | d2179ef | 2010-10-22 04:12:17 | [diff] [blame] | 11 | 'git mailsplit' [-b] [-f<nn>] [-d<prec>] [--keep-cr] -o<directory> [--] [(<mbox>|<Maildir>)...] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Junio C Hamano | b7ed57a | 2007-05-25 05:01:30 | [diff] [blame] | 15 | Splits a mbox file or a Maildir into a list of files: "0001" "0002" .. in the |
| 16 | specified directory so you can process them further from there. |
| 17 | |
| 18 | IMPORTANT: Maildir splitting relies upon filenames being sorted to output |
| 19 | patches in the correct order. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 20 | |
| 21 | OPTIONS |
| 22 | ------- |
| 23 | <mbox>:: |
| 24 | Mbox file to split. If not given, the mbox is read from |
| 25 | the standard input. |
| 26 | |
Junio C Hamano | b7ed57a | 2007-05-25 05:01:30 | [diff] [blame] | 27 | <Maildir>:: |
| 28 | Root of the Maildir to split. This directory should contain the cur, tmp |
| 29 | and new subdirectories. |
| 30 | |
Junio C Hamano | 14ccc60 | 2008-06-04 23:09:21 | [diff] [blame] | 31 | -o<directory>:: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 32 | Directory in which to place the individual messages. |
| 33 | |
| 34 | -b:: |
| 35 | If any file doesn't begin with a From line, assume it is a |
Junio C Hamano | 51c2ab0 | 2006-07-09 20:38:54 | [diff] [blame] | 36 | single mail message instead of signaling error. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 37 | |
| 38 | -d<prec>:: |
| 39 | Instead of the default 4 digits with leading zeros, |
| 40 | different precision can be specified for the generated |
| 41 | filenames. |
| 42 | |
| 43 | -f<nn>:: |
| 44 | Skip the first <nn> numbers, for example if -f3 is specified, |
| 45 | start the numbering with 0004. |
| 46 | |
Junio C Hamano | caa712a | 2010-03-11 01:17:35 | [diff] [blame] | 47 | --keep-cr:: |
| 48 | Do not remove `\r` from lines ending with `\r\n`. |
| 49 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 50 | GIT |
| 51 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 52 | Part of the linkgit:git[1] suite |