mbox-extract 0.2.0
Created by:
Paul Sajna <hello@paulsajna.com>
Extracts a mailbox text format file to individual text files per-message, with attachments
Usage: mbox-extract [OPTIONS] <MBOX_PATH> <OUTPUT_DIR> <FORMAT>
Arguments:
<MBOX_PATH>
Path to mailbox text format input file
<OUTPUT_DIR>
Path to output directory
<FORMAT>
Output format
Possible values:
- text: Text body only
- html: HTML body only
- raw: Entire message with all headers
Options:
--ss <START_DATE_RFC3339>
Starting date in rfc3339 format
--to <END_DATE_RFC3339>
Ending date in rfc3339 format
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
# From Cargo
cargo run --release -- ./testdata/gmail.mbox ./out raw
# From executable
mbox-extract ./testdata/gmail.mbox ./out rawThe RUST_LOG environment variable may be used to set the log levels for different log output verbosity
other output formats may be used to select different parts of the email.
mbox-extract ./testdata/gmail.mbox ./out text 2>&1 | tee log.txt