Lagotto
Help center

How email threads work

How Lagotto matches an emailed reply to its ticket, who is copied, and what happens to quoted text, signatures and attachments.

Each conversation with a customer is one ticket. This article explains how mail that arrives at your inbox address finds its ticket, who receives your replies, and how a message is shown once it is on the ticket.

How a reply finds its ticket

When someone replies to an email, their mail app adds hidden headers that name the message they are answering. Lagotto matches those against the messages already on your tickets:

  • A match adds the message to that ticket. If the ticket was closed, it reopens, and its history says "Reopened by the customer's reply". A ticket marked as spam gets the message but stays closed
  • No match opens a new ticket

Matching uses those headers only, never the subject line. So:

  • a customer who writes a fresh email with the same subject gets a new ticket
  • a forwarded message usually opens a new ticket, because a forward isn't a reply
  • mail apps that drop these headers start a new ticket

Matching only ever looks at your own workspace's tickets.

Your replies carry the same headers, so the conversation stays together in your customer's mail app too. Their subject is "Re:" followed by the ticket's subject.

CCs

When a new ticket opens, everyone else the customer wrote to or copied becomes a CC on the ticket, except the person who wrote and your own addresses. CCs are shown under the ticket's subject, and every reply you send goes to the customer with the CCs copied.

On a later reply:

  • if the customer or a CC copies someone new, that person is added to the ticket's CCs
  • leaving someone off the CC line of a reply doesn't remove them from the ticket

A reply from someone not on the ticket

Sometimes a customer forwards your reply to a colleague, who answers it. That answer still joins the ticket, shown under the colleague's own address. It doesn't add anyone to the CCs, including the colleague, so they don't receive your next reply unless the customer copies them.

Quoted text and signatures

An emailed reply usually brings the whole earlier conversation with it. Lagotto keeps the new part:

  • On a reply to an existing ticket, the quoted conversation at the bottom is left off when it can be told apart, since it is already on the ticket. A trailing signature marked with a -- line, or "Sent from my iPhone", is left off the same way
  • Anything quoted that remains is folded under Show quoted text
  • A signature is folded under Show signature. This includes a block of lines, such as a name, title and phone number, that another of the customer's messages on the ticket also ends with, and the footer a Google Group adds
  • A message that is only a forward, with nothing written above it, is shown whole

Folded text is still there: one click opens it. Expand all opens every message on the ticket but leaves quotes and signatures folded.

Plain-text email arrives broken into short lines, so Lagotto joins those back into paragraphs. Lists, sign-offs and addresses keep their own lines.

Older messages on a ticket are collapsed to one line each. The messages that carry the conversation right now stay open: what the customer has said since your last reply, your last reply and the message it answered, and the last internal note.

Attachments

Files attached to an email are attached to its message on the ticket, with a preview for images. Small images placed inside a message (under 5 KB, such as the logo and social icons in a signature) are left off, so they don't pile up on every message.

A message with no subject gets the subject "(no subject)". One with no text and no attachments shows "(no message)".

Updated View as Markdown