Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email messages do not merge in osTicket v1.10 #3440

Closed
Danteba opened this issue Nov 1, 2016 · 3 comments
Closed

Email messages do not merge in osTicket v1.10 #3440

Danteba opened this issue Nov 1, 2016 · 3 comments

Comments

@Danteba
Copy link

Danteba commented Nov 1, 2016

In osTicket v1.10-rc.2 when a user sent a email message with the same subject of an already created ticket, the email message was inserted as a new post on the initial ticket.

For example:

  1. The user-a@test.com send a email message to support@test.com with subject: "Need your assistance" with CC to user-b@test.com
  2. A new ticket is created with the title "Need your assistance"
  3. The user-b@test.com reply to all senders (with the same subject)
  4. The message from user-b@test.com is appended (merged) to the original ticket.
  5. So, there is just one ticket called "Need your assistance" with the messages from user-a@test.com and user-b@test.com

After the installation of the osTicket v1.10 this behaviour was broken:

  1. The user-a@test.com send a email message to support@test.com with subject: "Need your assistance" with CC to user-b@test.com
  2. A new ticket is created with the title "Need your assistance"
  3. The user-b@test.com reply to all senders (with the same subject)
  4. The message from user-b@test.com CREATES a NEW ticket (with the same subject).
  5. So, there are two tickets called "Need your assistance", one with the messages from user-a@test.com and the other with the message of user-b@test.com

Is this an expected behaviour? Or is it a bug?

Thank you for your work, and sorry for my english! :)

@Danteba Danteba changed the title Email messages do not merge in osTicket v1.10-rc.3 Email messages do not merge in osTicket v1.10 Nov 14, 2016
@Danteba
Copy link
Author

Danteba commented Nov 14, 2016

I found a workaround to this problem.

Just add the following lines at /includes/class.mailfetch.php after line 687 :

        $vars['references'] = $mailinfo['references'] ?: null; // Issue #3440 workaround
        $vars['in-reply-to'] = $mailinfo['in-reply-to'] ?: null; // Issue #3440 workaround

@ericLemanissier
Copy link
Contributor

thanks for the fix. Could you make a pull request ?

@cbiere
Copy link

cbiere commented Mar 29, 2017

@Danteba: Thanks a bunch! This fixed the problem in our installation of osTicket 1.10. Despite having [#%Ticketid] in the subject, responses by e-mail (from agents) created a new ticket.

@JediKev JediKev closed this as completed Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants