Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mbox-extract

Help

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

Example Usage

# From Cargo
cargo run --release -- ./testdata/gmail.mbox ./out raw
# From executable
mbox-extract ./testdata/gmail.mbox ./out raw

The 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.

Logging to file

mbox-extract  ./testdata/gmail.mbox ./out text 2>&1 | tee  log.txt

About

Extracts a mailbox text format file to individual files per-message, with attachments

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages