Two cases for one customer email. Nothing matched, so Salesforce opened another.

Email to Case never compares two emails and decides they ask the same thing. It looks for a token, then for three kinds of email header, and opens a new case when all four come back empty. So every duplicate is an email that arrived without its thread, arrived twice, was sent by your own org, or answered a case that was already closed. Each of those shows up differently in the records, and the queries below tell them apart before anyone merges a single case. When one email is creating multiple cases in the same minute, the cause is delivery, not threading, and it has its own section below.

Platform behaviour links to Salesforce Help and two Salesforce knowledge articles, all read on 23 November 2026. What comes from my own build is marked in the text.

Why does Email to Case open a second case for the same request?

Because matching failed at every step. With Lightning threading, Salesforce first searches the subject and body for a token of 23 characters. Then it compares the In-Reply-To header with the Message-ID stored on earlier emails, then the References header, then the Outlook Thread-Index header. Only when all four find nothing is a new case created. A duplicate means the reply lost all four on its way in.

Matching stepWhat Salesforce comparesWhat removes it
1. Threading tokenA token of 23 characters, in the reply’s subject or its bodyA customer who rewrites the subject; some email clients then drop the token
2. In-Reply-ToThe header against the Message-ID kept in MessageIdentifier on earlier emailsA mail relay that replaces the Message-ID Salesforce generated
3. ReferencesEvery Message-ID listed in the header; the newest matching email winsA gateway or third party client that strips or rewrites the header
4. Thread-IndexThe first 22 bytes of the Outlook header against ClientThreadIdentifierAny reply that was not written in Outlook
No matchA new case is createdNothing: this is where the duplicate comes from

Order of matching and the 23 character token: Email-to-Case Threading. Relays, gateways and edited subjects: Email-to-Case Threading Limitations & Considerations. Both Salesforce Help, read on 23 November 2026.

Which of the five kinds of duplicate case do you have?

Read the trace before the fix. A burst of cases with one subject inside a few minutes is a loop with your own mail. Cases titled Undeliverable or Automatic reply are bounces and out of office notices. A new case whose subject starts with RE: is a reply that lost its thread. Two cases in the same minute are one email sent to two service addresses. A case opened just after another closed is a late reply.

What the case list showsWhere it comes fromWhere to look first
A run of cases with one subject, minutes apartSalesforce mailing itself through a routing addressAuto response rules, queue and user email addresses, email alerts
Subjects such as Undeliverable or Out of officeAutomatic mail answering your replyThe rules of the service mailbox, before it forwards to Salesforce
RE: in the subject, an open case already exists for that senderA reply with no token and no usable headersThreading settings, mail gateway, subject edits
Two cases created within one minute, same bodyOne email addressed to two routing addressesTo and CC on the two email messages
A new case minutes after an older one closedA reply to a closed caseWhat your org does with mail on a closed case

One email to two routing addresses: Salesforce Help calls it unsupported, in Email-to-Case Threading Limitations & Considerations, read on 23 November 2026.

An email reaches a routing addressChecked in this orderFound1A threading token in the subject or body2The In-Reply-To header3The References header4The Outlook Thread-Index headerAdded to the case it namesA late replyAdded to the closed case. Unlessa rule acts, nobody sees it, andthe customer writes again.Nothing matched: a new caseWhy nothing matchedA loop with your own mailSalesforce’s own email comes back as a new one.Bounces and out of office noticesAutomatic mail answering your reply arrives as a new email.A reply that lost its threadNo token and no usable headers reached Salesforce.One email sent to two service addressesIt arrives twice, and each copy opens a case.Email to Case never compares two emails and decides they ask the same thing; it only looks for acase to add an email to.An email reaches a routingaddressChecked in this orderThe first check that finds a case addsthe email to it.1A threading token in thesubject or body2The In-Reply-To header3The References header4The Outlook Thread-IndexheaderNothing matched: a new caseWhy nothing matchedA loop with your own mailSalesforce’s own email comes backas a new one.Bounces and out of office noticesAutomatic mail answering your replyarrives as a new email.A reply that lost its threadNo token and no usable headersreached Salesforce.One email sent to two serviceaddressesIt arrives twice, and each copy opensa case.Matched, and still missedA late replyAdded to the closed case. Unless arule acts, nobody sees it, and thecustomer writes again.Email to Case never compares twoemails and decides they ask the samething; it only looks for a case to addan email to.
The five kinds from the table above, placed on the four matching steps: four never match, and the fifth matches a case nobody is looking at.

How do you prove which kind it is from the data?

With two queries. The first finds senders who produced several email cases with the same subject in the last seven days. The second reads the incoming email messages on two of those cases. One Message-ID on both cases means one email reached Salesforce twice. Two Message-IDs that differ point to two separate emails Salesforce failed to connect, and the subject and addresses show why.

SOQL
SELECT SuppliedEmail, Subject, COUNT(Id) total, MIN(CreatedDate) firstSeen
FROM Case
WHERE CreatedDate = LAST_N_DAYS:7 AND Origin = 'Email'
GROUP BY SuppliedEmail, Subject
HAVING COUNT(Id) >= 2
ORDER BY COUNT(Id) DESC
LIMIT 20

Pick two cases of the largest group, copy their Ids, and list the email that came in on each, in time order:

SOQL
SELECT Parent.CaseNumber, Parent.Status, Parent.ClosedDate,
       CreatedDate, MessageIdentifier,
       FromAddress, ToAddress, CcAddress, Subject
FROM EmailMessage
WHERE ParentId IN ('500AAA', '500BBB')
  AND Incoming = true
ORDER BY CreatedDate ASC
What the second query returnsKind of duplicate
FromAddress belongs to your company or to a mailer daemonLoop, bounce or out of office
Same MessageIdentifier on both cases, different ToAddressOne email sent to two routing addresses
Different MessageIdentifier, the later subject starts with RE:A reply that lost its thread
The newer email’s CreatedDate is later than the older case’s ClosedDateA reply to a closed case

MessageIdentifier holds the Message-ID of each email, per Email-to-Case Threading, read on 23 November 2026. Put your own case Ids in place of 500AAA and 500BBB; both queries only read.

Why is Email to Case creating multiple cases from one email?

Because the same message reached Salesforce more than once, through two routing addresses or through two forwarding paths. Threading cannot join the copies of a first email: none of them is a reply, so each one arrives as a new email. The sign is two or more cases created within the same minute, with one sender, one subject and one body. The same Message-ID on every copy proves it was one email, delivered several times.

How the copies arrivedWhat the incoming emails showWhat to change
The customer wrote to two service addresses, one in To and one in CcThe same MessageIdentifier on both cases; ToAddress and CcAddress name both routing addressesPublish one address per team; make the other service addresses aliases of one mailbox that forwards once
A mailbox forwards to Salesforce, and a group or alias that contains it forwards as wellThe same MessageIdentifier and the same ToAddress on both casesKeep one forwarding path per mailbox and remove the second rule
One distribution group holds two service mailboxes, and each forwards to its own routing addressThe same MessageIdentifier; the Received lines in Headers name two different mailboxesForward the group’s mail from one mailbox only

Turn on Save Email Headers on each routing address before you test. Salesforce describes that setting as saving email routing and envelope information, and describes the Headers field of an incoming email as its internet headers, kept for debugging and tracing. The Received lines in those headers, read from the bottom up, show the path each copy took.

To find the bursts, add the last arrival to the first query above. A group whose first and last case are seconds apart is one email delivered several times:

SOQL
SELECT SuppliedEmail, Subject, COUNT(Id) total,
       MIN(CreatedDate) firstIn, MAX(CreatedDate) lastIn
FROM Case
WHERE Origin = 'Email' AND CreatedDate = LAST_N_DAYS:7
GROUP BY SuppliedEmail, Subject
HAVING COUNT(Id) >= 2
ORDER BY COUNT(Id) DESC
LIMIT 20

Then read the incoming email on two cases of one group, headers included:

SOQL
SELECT ParentId, CreatedDate, MessageIdentifier,
       ToAddress, CcAddress, Headers
FROM EmailMessage
WHERE ParentId IN ('500000000000001AAA', '500000000000002AAA')
  AND Incoming = true
ORDER BY CreatedDate ASC

Fields MessageIdentifier, ToAddress, CcAddress and Headers: EmailMessage in the Salesforce Object Reference. Save Email Headers (saveEmailHeaders on EmailToCaseRoutingAddress): the Metadata API Developer Guide. Both read on 3 December 2026. Both queries only read; I ran them in my own org on 3 December 2026 to check that Salesforce accepts them. Put the Ids of two cases from one group in place of the two sample Ids.

What stops an Email to Case loop before it creates hundreds of cases?

One routing address that nothing in Salesforce ever sends from or to. Its loop detection starts only once more than 15 emails sharing one subject, one sender and one body arrive within 60 seconds, and a few more cases can be created before it stops. A loop slower than that never reaches the threshold, so nothing stops it. The four known causes are all settings, so the fix is removing the routing address from every one of them.

Cause Salesforce namesHow the loop runsWhat to change
Out of office replies to the routing addressEach auto reply arrives as a new emailA rule in the service mailbox that files them before forwarding
Auto response rule with the routing address as Reply To or SenderThe confirmation comes back as a new requestA separate organisation wide address as sender
Queue or user email equal to a routing addressEvery owner notification lands back in Email to CaseGive queues and users their own addresses
Email alerts that send to a routing addressAn alert creates a case, the case fires the alertRead the recipients of every case alert and flow that sends email

The loop also has a quiet form. When the setting Notify Case Owners on New Emails is on, an owner or default owner whose email equals the routing address receives a notification for each new email, and Salesforce routes that notification back into the case as if the customer had written again.

Threshold, error text LIMIT_EXCEEDED and the four causes: Bounce back loop from Email-to-Case. Notification loop: Prevent Multiple or Duplicate Case Email Notifications. Both Salesforce knowledge articles, read on 23 November 2026.

When a customer writes to a closed case, reopen or open new?

Start a new case if closed cases feed reports or service clocks; reopen only if nothing counts them. A reopened case gets a new closing date and a longer handling time, though the work was already reported as done. In the insurance agency desk I built, a late reply starts a fresh case that points back to the old one, so finished work stays finished. Check first how often closed cases receive mail at all.

ChoiceWhat happens to the old casePick it when
Reopen the closed caseStatus, closing date and time to close changeNobody reports on closed cases or on time to close
New case linked to the old oneStays closed; the new case carries the linkReports, service clocks or surveys count closed cases
Leave the email on the closed caseNothing changes, and unless someone watches closed cases, nobody answers itNever: the customer waits for an answer that does not come

One source of late replies is easy to miss. Orgs created from Winter ’23 onward put the threading headers into email alerts, and with Lightning threading every reply to an alert is added to the case. A customer who answers a closing email with thanks is writing to a closed case.

Replies to email alerts: Threading Automated Case Emails, Salesforce Help, read on 23 November 2026. The new linked case: the insurance agency case.

Does merging duplicate cases stop them coming back?

No, it cleans up the ones that already exist. A rep can merge up to three cases, choosing which one becomes the master and which field values it keeps. Related lists, feed items and child records move to the master, and later email that belongs to a merged case goes to the parent. The cause stays where it was, so the next duplicate arrives tomorrow.

After a mergeWhat Salesforce Help says
Cases per mergeUp to three
The other casesDeleted to the recycle bin for 15 days, or kept with Merged added to the subject, depending on the setting
Related lists, feed items, child recordsAdded to the master case
New email for a merged caseAssociated with the parent case

Where only the owner may work a case, merging needs its own rule. In the agency build, a rep merges from a search by the sender’s email, limited to open cases, so a closed case is never pulled back into work.

Merge behaviour: Merge Duplicate Cases in Lightning Experience; email after a merge: Email-to-Case Threading Limitations & Considerations; both read on 23 November 2026.

More on the same desk: Email to Case setup, Email to Case not creating cases, case assignment rules not working, business hours and SLA timers and a Service Cloud audit checklist.

Questions buyers ask about Email to Case duplicates

  • QDoes editing the subject line create a new case?

    It can. Salesforce Help warns that some email clients drop the threading token when the customer edits the subject. Lightning threading then falls back to the headers, and only a reply with neither becomes a new case.

  • QWhy does one email create two or three cases at once?

    Because it reached Salesforce two or three times: addressed to two routing addresses, or forwarded by two rules. Each copy is a new email, so each becomes a case. The same Message-ID on every copy confirms it; the section on multiple cases above shows where to look.

  • QWhy is Email to Case not creating a case at all?

    Then the email stopped before it became a case: forwarding, the routing address, the sender, the daily limit or a rule on Case. The checks, in order, are in Email to Case not creating cases.

  • QHow should Email to Case be set up so duplicates do not start?

    One routing address per inbox, nothing in Salesforce sending to it, Lightning threading on, and a rule for replies to closed cases, all decided before go live. The settings and the go live tests are in Email to Case setup.

  • QWhy do replies in a refreshed sandbox open new cases?

    A refresh changes the org ID, and Salesforce Help says the Case Thread Token tied to the original org ID is then no longer valid. Test threading with emails sent after the refresh.

  • QCan a validation rule block out of office cases?

    Salesforce suggests one as an optional step, such as a rule on Case that refuses a subject containing OOO. A mailbox rule is safer, because the validation rule also refuses a customer who happens to use the word.

  • QIs Ref ID threading still supported?

    Only in maintenance mode. Salesforce Help, read on 23 November 2026, recommends the release update that disables Ref ID and switches to Lightning threading, which combines tokens and headers.

    Serhii Skrypnyk, Senior Salesforce Administrator, Salesforce certified, on the platform since 2018. Reviewed 4 December 2026.

Build email to case once, without the loops

A Service Cloud build here starts at €12,325 for 145 hours, beginning with email to case: one routing address per inbox, queues, Lightning threading and a decision on closed cases. It includes thirty days of support after handover, up to eight hours in total, and a sixty day warranty.

If you are the only admin, or inherited the org, and duplicate cases are one request among many, monthly support from €680 for 8 hours takes requests like this off your list. If the worry is whether the case data can be trusted at all, the data quality check is €650: one working day, read only. If customers say your replies never reach them, that is a different fault, covered in Salesforce emails not received.