Email

Email Threads

Groups emails into conversation threads and marks the inclusive emails, so reviewing only those covers the text and attachments of each whole conversation.

PRO Command line: email-threads Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

Email Threads reads .msg and .eml files (and, when Extensions is empty, emails saved with no extension, as in Unix mail stores such as the Enron corpus) and joins them into threads. It uses, in order of strength: reply headers (Message-ID, In-Reply-To, References), Outlook's conversation index, and optionally the subject of replies and forwards between the same people. It does not copy or change any email; the output is two reports.

Within each thread, an email is not inclusive when a later email in the thread contains all of its text and has all of its attachments. The comparison ignores quoting marks, line breaks, spacing and letter case. The inclusive emails together cover the conversation. Copies of the same email (same Message-ID, or the same sender, time, text and attachments filed in two folders) are identified and marked not inclusive.

Email Threads
Email Threads in LitTechKit
Email Threads after a run on demonstration data.

Use it when

How to run it

  1. Choose the folder of emails as Input and an Output folder outside it.
  2. Leave Also group by subject on for older collections without reply headers; turn it off to group only by reply headers and Outlook's conversation index.
  3. Leave Find inclusive emails on to mark inclusive emails.
  4. Click Run. The emails are read first; threads are built once all have been read.
  5. Read the notes for the totals, then click Open report.
  6. Open threads.csv in the run folder for one row per thread.

Settings

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

Settings

SettingWhat it doesType and default
Also group by subject
--match-subjects
For emails without reply headers (common in older collections), a reply or forward (RE:, FW:…) joins an email with the same subject when they share a sender or recipient. Off: only reply headers and Outlook's conversation index group emails.
Only used to join a reply or forward (RE:, FW:, Fwd:, AW:, WG:, SV:, TR: and similar, plus tags such as [External]) to an earlier email with the same remaining subject, and only when they share a sender or recipient. Two unrelated emails that just share a subject are not joined. Rows joined this way show Subject (reply or forward) in GroupedBy.
yes/no
true
Find inclusive emails
--inclusive
Mark each email Inclusive when no later email in its thread quotes all of its text and attachments; reviewing only the inclusive emails covers the whole conversation.
Reads the body and attachment names of every email in threads of two or more. Turn it off for a faster run when you only need the threads; the Inclusive columns are then left blank. Threads of more than 2,000 emails are not compared: every email in them is marked inclusive with a reason saying so.
yes/no
true

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. list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares.
Also sets how many threads are compared at once when finding inclusive emails.
number
4

What you get

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

Report columns

Check the result

Tips
  • A single email on its own is always inclusive.
  • An email whose text is quoted later, but whose attachment was dropped from the reply, stays inclusive, and its reason says so.
  • Filter Inclusive = Yes to build the review set, and keep the report to show how the rest were excluded.
Watch out for
  • Attachments are compared by file name, not by content. A later email with an attachment of the same name counts as having it.
  • The text test needs the earlier email's whole text to appear in the later one. If a reply edits or trims the quoted text, the earlier email stays inclusive, which is the safe direction.
  • Threading only sees the emails in this run. Run it over the whole set you intend to review, not batch by batch.

From the command line

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

ltk run email-threads --input "D:\Matter\Extracted\files" --output "D:\Matter\Threads" --match-subjects --inclusive

Related tools