DominaresTools

All tools / Email & messaging

replysplit

Split an email reply chain into clean, attributed messages.

Buy replysplit for $49

One payment of $49, plus sales tax where it applies, and every future update. Delivered as a private GitHub repository you're invited to.

Runs inside Lina. Extracted from the inbox tooling in Lina that splits an email reply chain into clean messages.

See it work

replysplit 1.1.2real run
replysplit tests/fixtures/gmail_reply.eml
Subject: Re: Order 1042 has not arrived
Conversation: msg:question-0@mail.example.org
3 turns, oldest first

[1] original | Pat Doe <pat@example.org> | 2026-03-03 10:15 | quoted
    Hello, my order 1042 has not arrived yet. Where is it?

[2] reply | Help Desk <help@example.com> | 2026-03-03 16:40 | quoted
    Hi Pat, your order left our warehouse on Monday and should arrive tomorrow. The tracking page (https://track.example.com/1042) has the details.

[3] reply | Pat Doe <pat@example.org> | 2026-03-04 09:12 | newest author's own words
    Thanks, it arrived this morning. One more question: can I change the delivery address for my next order?

replysplit tests/fixtures/gmail_reply.eml --pairs --own-domain example.com
[1] Q (Pat Doe): Hello, my order 1042 has not arrived yet. Where is it?
    A (Help Desk): Hi Pat, your order left our warehouse on Monday and should arrive tomorrow. The tracking page (https://track.example.com/1042) has the details.
Real output of replysplit 1.1.2, run on 2026-10-05 on a sample reply chain that ships with replysplit, with example.com and example.org addresses.

What it does

replysplit takes one incoming email and returns the conversation inside it: each message with who wrote it, when, its subject and its text, and the words the newest author typed without the quoted history. It also tells a person from a machine, recognises your own reply coming back, and pairs customer questions with your answers with personal details scrubbed. A free sift then picks the few pairs a person should review.

Reply chains into turns
Each message in the chain becomes a turn with sender name and address, sent time, subject, text, kind (original, reply or forward) and whether it was quoted. visible_text holds what the newest author wrote.
Reads the formats real clients write
Outlook From/Sent/To/Subject blocks, On <date> wrote: lines (also in German, French, Spanish, Dutch, Italian, Portuguese and Nordic forms), Original Message and forwarded-message markers, > quote levels and HTML blockquotes. A line like "From: a legal standpoint" stays in the text.
HTML and links kept readable
HTML becomes text that keeps link text, list items and pre indentation. Outlook Safe Links, URL Defense and Google redirects are unwrapped, and click trackers behind a link are dropped. A URL a person typed is never removed.
Person or machine
classify_mail reads the headers first and gives its reasons: bounce, auto-reply, bulk, automated or person. You declare your own domains, addresses and group aliases, so your own list mail is not taken for a mailing.
Your own replies recognised
EchoDetector spots the copy of a reply you sent when it comes back through a Sent Items sync or a BCC, without swallowing a customer who quotes you. Sent replies are kept in memory, in SQLite or in your own store.
Conversation keys that hold
conversation_key stays the same through Re:, Fwd:, AW:, SV: and [EXTERNAL] prefixes. It uses message ids or your provider's thread id when there is one, and falls back to the subject.
A free sift
Drops bounces and out-of-office notes, replies too short to be an answer or that only promise one, text that is not a question, list mail, answers about how your own team works, answers that are only true today, and near-duplicates, each with a reason. It calls no model. It also reads the human reply, so a greeting such as "thanks for reaching out today" can drop a pair; turn that off with --allow-time-bound.
A review queue
One JSON file with a card for each pair, keep or skip decisions, and rescans that judge only new pairs. A queue file it cannot read is left untouched and reported. A prompt for your own model is included; the package calls none.
Question and answer pairs
question_answer_pairs pairs a customer's question with your side's reply and scrubs email addresses, phone numbers and long digit runs from the text, subject and names. Thank-yous are skipped and near-duplicates can be removed.

What you get

replysplit 1.1.2: the Python library and the replysplit command, with sample messages, an ingest example and the test suite, with 638 automated tests.

A commercial license. Use it and change it in your own projects and your clients' projects. Don't share or resell the source. Read the license.

Every update. New versions land in the same repository; git pull to get them.

Requirements

Python 3.10 or newer. The Python standard library.

How buying works

  1. Enter your GitHub username. You'll see the account before you pay, so you can check it's yours.
  2. Pay $49, plus any sales tax shown at checkout, on Stripe's checkout page.
  3. Accept the invitation GitHub emails you. Signed in as that account, you'll also find it at github.com/dominares-tools/replysplit/invitations. Invitations expire after 7 days; you can get a new one any time.
  4. Clone and install:
    git clone https://github.com/dominares-tools/replysplit.git

    Private repo: sign in to GitHub on this computer first. Run gh auth login and choose HTTPS, or give git a personal access token when it asks for a password. To use an SSH key instead, clone git@github.com:dominares-tools/replysplit.git.

    python3 -m venv .venv && . .venv/bin/activate
    pip install ./replysplit

Questions

Do I need GitHub?

Yes. Access is a read-only invitation to a private repository, sent to the GitHub account you choose.

Can I get a refund?

Yes, within 14 days, no questions asked. Access ends when the refund goes through. Refund policy.

Who takes the payment?

Payments are handled by Stripe, which works out sales tax. Your receipt and card statement show Link (LINK.COM*), Stripe's checkout service.

Something wrong?

Email support@dominares.org. Every buyer of a tool shares its repository, so support happens by email rather than in GitHub issues.