Question
An email message threads into an existing ticket as a comment instead of generating a new ticket. Why do emails thread to the wrong ticket?
Answer
When a new email is received, Zendesk scans the message-ID on the email. If that message-ID matches an existing ticket then the email is added as a comment on the existing ticket. Zendesk does this regardless of the support address the email is received at.
The threading logic from an email is based on RFC standards. All of the lines for In-Reply-To
and References
should contain unique values. If one of these lines uses a static message-ID or email address, Zendesk will thread incoming emails into the same ticket.
Make sure that you are not removing all of the text from another email conversation and resending the email or just changing the Reply-To
address. To create separate tickets, copy the email content into a new email and manually send it to your support address.
Checking your original email
To determine what is causing your tickets to automatically thread multiple emails into one single ticket, follow the steps below to examine the original email records for matching message-IDs.
- Open the original message that began the ticket. A window or a new browser tab will show you the original data from the email that was sent to Zendesk.
- Repeat this for the next threaded message that comes from the same sender that should be a separate ticket.
- Select Source for both of the messages under the subject line. This will display the header data.
Analyzing the header information
The data in the Source tab covers a large amount of data that is hidden by email programs. The critical information is listed as one or more of the following items:
- Message-ID:
- In-Reply-To:
- References:
If you find Message-ID within the headers of the email, this is the first email written as an original message in this format. Copy the string found next to message-ID, and check the References entries for matching messages. Use the Find function (Control-F or Command-F) by pasting the string.
If you find In-Reply-To or References, this shows the message is a reply to a pre-existing message in the requester's email account. Use the Find function to check for more Reference strings to check for matches. This will confirm that the requester replied to saved messages in their inbox instead of submitting a new separate request. You are likely to see this if the ticket in your system is listed as a follow-up ticket.
Finally, another reason might be that the encoded ID from another ticket, which is used for threading incoming email replies into existing tickets, appears in the email.
For more information, see the article: Understanding How Incoming Emails are Matched to Tickets
26 comments
Rico Pagliuca
We have an instance where we have an external support provider that sends us ticket notifications [via ConnectWise, I believe] which always come with the subject:
Ticket#XXXXX/Location/Issue
Each time their ticketing system generates a response [whether to us or another third party or to their own office] it creates a new ticket.
How can I have a trigger based on subject to check if the Ticket#XXXXX exists and thread into that if so?
0
Marco
Hi Americo,
That's a good question. Right now, business rules in Zendesk (triggers and automations) do not have the function to thread emails to existing tickets. Also, while triggers are able to check the subjects of tickets, it would only be for checking it for a specific word or thread. There is no way for a trigger to check the subject and cross-reference it with all the existing tickets.
I would suggest posting this as a feature request though, as I do see how this can be useful. Feel free to post this here: https://support.zendesk.com/hc/en-us/community/topics/200132066--Feedback-on-Support
Cheers!
Marco M. | Zendesk Support
0
CJ Johnson
How can we check the message ID, when the issue is replies from email to a chat conversation, where we cannot check any message ID on the original message because it originated from Zendesk?
0
Rad
To check the message ID of an email, you can open a ticket created by inbound email and you have the option to view and download the original email.
Please see Viewing the HTML and original source for incoming tickets for more information.
Trust this helps.
0
CJ Johnson
Hi Rad,
Those instructions do not work for the situation I have laid out, thus my question.
0
Jessica G.
Hello CJ Johnson!
Thanks for the follow-up! We're sorry to hear the initial instructions were not ideal for your use case.
I'd like to refer you to this other article regarding Customers not receiving emails. The events should show a Trigger notification with a number that Advocates can use to track down logs internally. Although we wouldn't be able to check logs every time, if you're having specific issues, feel free to contact us via WebWidget Messaging and we'll be happy to help further.
In short, "Message-IDs" are only available for inbound email messages, not outbound, but if you replied to an actual email, the Message-ID should remain the same for the entire thread, and that's how Zendesk links all messages in the same ticket. Hope that makes sense! :)
![](/hc/user_images/QC2z5uF8e2ocNg9qmDEc4w.png)
Ex.
-1
Vladimir Shkuratov
Hi @...
We have external system sends emails to Zendesk and every time in generates new ticket in Zendesk despite the Subject, Sender and Receivers are the same?
Can you recommend the way to configure in a way that Original ticket gets updated instead of generating new ones every time.
Thanks.
0
Dane
As explained in this article, if
In-Reply-To
andReferences
lines are different it will be threaded on a different ticket or create a new one. It's possible that your external system is changing these values. Due to this, the only recommendation we can provide it to work with the system admin to make sure that no changes will be made to the emails they will send to Zendesk.-1
Jacqueline
Hi Zendesk Team,
I have one ticket (#abcd) in particular where Requesters had history of sending new ticket to support+idabcd@mycompany.com, which we have already advised requester to send to support@mycompany.com instead.
Requesters Forwarded the email (where he sent to support+idabcd@mycompany.com) to the correct support@mycompany.com without the wrong address, but the new email still threaded to #ticketabcd.
Please advise if this should be the correct behavior?
0
Brett Bowser
It looks like you have a ticket open with our Customer Care team regarding this issue. They will follow up with you as soon as they can to troubleshoot further so stay tuned.
Cheers!
-1
Longboard
Is there any way to have an email reply processed by Zendesk as a comment on an existing ticket, without the original message-id in the In-Reply-To header?
We tried adding the ticket email address to the "References" header, but that just resulted in the message being flagged with the error "Permission denied due to unauthenticated email update".
0
Gabriel
The message-id is required for the email operation on an existing ticket. As you can see addressed in the article: When a new email is received, Zendesk scans the message-ID on the email. If that message-ID matches an existing ticket then the email is added as a comment on the existing ticket. Zendesk does this regardless of the support address the email is received at.
I hope this answers your question! Thanks!
-1
Longboard
It also mentions using the References header. If the References header has a value such as support+id1234@domain.tld, does Zendesk honour that as a link to the original ticket of 1234 for comment? Or does it only use the original message-id and only in the In-Reply-To header?
0
Longboard
Quoting from the article above, "If one of these lines uses a static message-ID or email address", where "these" refers to the In-Reply-To and References headers.
0
Dane
If you'll use the support+id1234@domain.tld it will still be threaded on the same ticket. However, it will have a banner pertaining to the user as not part of the conversation. There's also a possibility that the reply coming from that email address will be suspended like what happened on my test. It will only be visible on the ticket once you have recovered it.
The one in the red box was a user not part of the ticket that used support+id1234@domain.tld. Meanwhile, the requester (green box) also used support+id1234@domain.tld and it was threaded on the same ticket.
-1
CJ Johnson
This is not accurate. I have messages with unique message-IDs threading together.
0
Longboard
CJ - would you mind sharing some notes on the SMTP headers used to accomplish this?
0
CJ Johnson
Longboard I literally just downloaded the original email source from multiple emails in a thread that I knew should never had threaded, and lo and behold, the message ID in each is very different, yet they are threading into a single ticket. They also all have unique subject lines.
![](/hc/user_images/8GUwrL4nXN_6fBvbfbSzAA.png)
![](/hc/user_images/BTmHaOLwbQfDIy6_FdUgPA.png)
0
Martin Tomlinson
I believe the original answer is confusing/wrong - each email will have a unique 'Message-ID' the key to any reply emails being linked to an existing ticket is that the new email will have an 'In-Reply-To' id that is the same as the 'Message-ID' of an email in an existing ticket.
So this
"When a new email is received, Zendesk scans the message-ID on the email. If that message-ID matches an existing ticket then the email is added as a comment on the existing ticket."
would be more accurate if it said
"When a new email is received, Zendesk scans for any 'In-Reply-To' id on the email. If the 'In-Reply-To' id matches an existing tickets Message-ID then the email is added as a comment on the existing ticket."
2
Daniel Rafeedie
When we interface with customers / vendors that use JIRA or Salesforce to ingest our emails (ticket updates from Zendesk) every response goes into a new ticket due missing headers and references. However, in our gmail account we can see that Google is able to thread these responses from JIRA without issue, so the limitation sits within Zendesk.
Does this same limitation exist in side conversations via email as well? Or is side conversations threading their replies using similar functionality to gmail?
0
Mark
Is there anything that can be done to force new tickets even when the headers are the same in a ticket?
We are getting emails from people who like to reply to their old emails or forward them instead of creating a new one, and this adds it as a reply to an existing ticket, instead of a new one, and issues are getting missed by our agents that needed to have been triaged.
1
Dane
Unfortunately, it's not possible. Our practice here is whenever such scenario arises, we create another ticket and set the correct expectation to our customers.
0
Mark
Are there any 3rd party tools that can accomplish the creation of a new ticket based on certain conditions? I was looking into creating a Trigger that would detect a certain text in the reply body, and if it exists, make a new ticket from it.
0
Mike DR
There isn't a native way to do that yet (neat feature though), but you can try checking our Marketplace apps here to see if one fits your needs.
0
Marta Max
None of this was helpful... the message ID is unique but the Resent-Message-ID is not and is the culprit I think, as well as the first responder CC the address it wasn't supposed to... how can I separate out these tickets as there are over 100 responses
0
Brijesh Singh
In Zendesk suppose I send an email on "A" email address & again I edited the same email with the same subject line but this time I sent it on "B" email address but it is creating the same email trail instead of new email, why? & How to fix it?
0