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.
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
- You have received a folder of loose
.msgor.emlfiles and need a quick list of who sent what to whom, and when. - You want to check a collection's date range or custodians before processing it.
- You need Message-ID and In-Reply-To values to compare against another list or a load file.
- You have extracted a mailbox with Extract Mailbox (PST/OST) and want an index of the resulting
.emlfiles.
How to run it
- Choose the folder of emails (or a single email) as Input.
- Choose an Output folder outside the input folder.
- Leave Recurse on to include sub-folders.
- Leave Extensions empty to read
.msg,.emland emails with no extension. Enter extensions only if you want to narrow the run. - Click Run.
- 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
| Setting | What it does | Type 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/notrue |
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. |
number4 |
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).
email-metadata.csv: One row per email. Format is MSG or EML. From, To, Cc and Bcc hold names and addresses, several values separated by;. SentUtc and ReceivedUtc are in UTC. AttachmentCount and AttachmentNames list attachments and attached emails; inline images such as signature logos are not counted.errors.csv: Any email that could not be read, with the reason.manifest.json: The settings, versions, counts and hashes for the run.
Report columns
RelativePathFileNameFormatSubjectFromToCcBccSentUtcReceivedUtcMessageIdInReplyToAttachmentCountAttachmentNamesFullPath
Check the result
- Compare the number of rows with the number of emails you expected, and look at
errors.csvfor any that could not be read. - Sort by SentUtc to see the date range and spot emails with no date.
- Filter on Format if you expected only one kind of file.
- Dates are shown in UTC. Convert them to local time (for example AEST/AEDT) in Excel if your review needs local dates.
- For
.emlfiles, SentUtc comes from the email's Date header and ReceivedUtc is left blank; for.msgfiles 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
.msgor.eml.
- 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
- Extract Mailbox (PST/OST): Extracts every email and other item from Outlook .pst and .ost files into .eml files in the mailbox's folder structure, without Outlook. Optional date range, folder and item-type filters; every item is reported and folder counts are checked.
- Extract Attachments: Extracts attachments (and attached emails, recursively) from .msg and .eml files into a new folder, with family IDs, verified hashes and safe file names.
- Email Threads: Groups emails into conversation threads by their reply headers, Outlook's conversation index and (optionally) reply subjects, and marks the inclusive emails: those not fully quoted in a later reply, so reviewing only them covers each conversation.
- Keyword Search: Searches PDF, Word, Excel, PowerPoint, email and text files for keywords (with wildcards) or regular expressions. Reports every hit with context, hits per term, and files that could not be searched.