Email

Email Metadata

Lists the header details of every email in a folder (subject, sender, recipients, dates, Message-ID, In-Reply-To and attachment names) in one spreadsheet-ready report.

Free Command line: email-metadata Version 1.0

Email Metadata reads Outlook .msg files and internet .eml files and writes one report row per email. It does not copy or change the emails: the only output is the report.

The format is worked out from the file's content, not its extension, so an Outlook message saved as .eml (or the other way round) is still read correctly. When Extensions is left empty, the tool also reads emails saved with no extension at all, as found in Unix mail stores such as the Enron corpus (files named 1., 2., 3. …). A file with no extension is treated as an email only if its first lines are email headers including From:.

Use it when

How to run it

  1. Choose the folder of emails (or a single email) as Input.
  2. Choose an Output folder outside the input folder.
  3. Leave Recurse on to include sub-folders.
  4. Leave Extensions empty to read .msg, .eml and emails with no extension. Enter extensions only if you want to narrow the run.
  5. Click Run.
  6. When the run finishes, click Open report to open email-metadata.csv.

Settings

Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help email-metadata lists them.

Common settings

SettingWhat it doesType and default
Input required
--input
Folder (or single file) to read. It is opened read-only and never modified. folder
empty
Output required
--output
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. folder
empty
Recurse
--recurse
Include sub-folders. yes/no
true
Extensions
--extensions
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set.
Left empty, the tool reads .msg and .eml files and also checks files with no extension for email headers. As soon as you enter any extensions, that header check is turned off and only the listed extensions are read.
list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares.
Header reading is light work. Lower it to 1 or 2 when the emails are on a network share or a spinning external drive.
number
4

What you get

Each run creates its own folder inside the output folder, with the report email-metadata.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • Dates are shown in UTC. Convert them to local time (for example AEST/AEDT) in Excel if your review needs local dates.
  • For .eml files, SentUtc comes from the email's Date header and ReceivedUtc is left blank; for .msg files both are filled where Outlook stored them.
  • Outlook sent items and drafts often have no transport headers. For these, MessageId falls back to the ID Outlook stored with the message, if there is one.
  • An attached email appears in AttachmentNames as its subject followed by .msg or .eml.
Watch out for
  • Bcc recipients only appear where the email file kept them, which is usually the sender's own copy. A blank Bcc does not prove there were none.
  • The report lists attachment names only. To get the attachments themselves, run Extract Attachments.

From the command line

The command line is part of LitTechKit Pro. See Command line.

ltk run email-metadata --input "D:\Matter\Emails" --output "D:\Matter\Reports"

Related tools