Skip to content

Analyze emails

Info

For this option, you need to specify at least one sandbox in the config.

To get the email headers, specify the eml file in the parameters.

$ sandbox-cli email file.eml

The files will be downloaded to the downloads directory with the headers suffix.

tree
downloads/
└── file.eml.headers

Usage example

It is useful when it is necessary to decode or extract the headers of an email without the content itself.

Help

$ sandbox-cli email --help

Usage: sandbox-cli email [OPTIONS] EMAILS

Upload an email and get its headers.

╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ *  EMAILS  The path to the email files [required]                            │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Parameters ─────────────────────────────────────────────────────────────────╮
│ --out -o   The path where to save the results [default: downloads]           │
│ --json -J  Print results as JSON lines to stdout; messages and progress go   │
│            to stderr [default: False]                                        │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Sandbox Options ────────────────────────────────────────────────────────────╮
│ --key -k  The key to access the sandbox main [default: main]                 │
╰──────────────────────────────────────────────────────────────────────────────╯