Linux command
git-mailsplit 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Split mbox into messages
git mailsplit -o [output-dir] [mbox]
Split from stdin
git mailsplit -o [output-dir]
说明
git mailsplit splits an mbox file into individual email messages. Each email becomes a numbered file in the output directory, preparing patches for processing by `git am`. The command is a plumbing tool used internally by `git am` to handle mailbox files containing multiple patches. It detects mbox format boundaries and separates each message into its own file.
参数
- -o _DIR_
- Output directory.
- -b
- Include mbox "From " line.
- -d _DIGITS_
- Number padding width.
- -f _NUM_
- Start numbering from N.
- --keep-cr
- Keep carriage returns.
- --help
- Display help information.
FAQ
What is the git-mailsplit command used for?
git mailsplit splits an mbox file into individual email messages. Each email becomes a numbered file in the output directory, preparing patches for processing by `git am`. The command is a plumbing tool used internally by `git am` to handle mailbox files containing multiple patches. It detects mbox format boundaries and separates each message into its own file.
How do I run a basic git-mailsplit example?
Run `git mailsplit -o [output-dir] [mbox]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o _DIR_ do in git-mailsplit?
Output directory.