E-mail piping: Reply will create new ticket everytime

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Sweritasa
Posts: 2
Joined: Mon Mar 11, 2019 3:16 pm

E-mail piping: Reply will create new ticket everytime

Post by Sweritasa »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: "When replying new ticket is created" and "reply will create new ticket"

Write your message below:
Hi guys,
I hope you can help me with this. I'm totally new with Hesk helpdesk software and I was asked to solve this problem.

We have Email piping enabled and every time some user sends us an Email to a specific email address, HESK would create a new ticket. This is all fine.

Problem is, another ticket is created if someone is replying to all and that specific email address is included in the reply message. So we have all these opened tickets that are unnecessary.

I know I can merge tickets, but I want to get rid of this ticket creating.

I found one possible solution here, but I want to ask you guys if this could work.

Post by Klemen » Fri Jul 21, 2017, 7:46 am

Try this:

1. backup existing inc/pipe_functions.inc.php file
2. open the file in a powerful text editor that can properly encode files, such as Notepad++
3. Find line
CODE: SELECT ALL

// Process email message, convert to UTF-8
4. just ABOVE that line add
CODE: SELECT ALL

if (strpos($tmpvar['subject'], 'RE:') === 0)
{
return hesk_cleanExit();
}
5. save, upload and test


So the idea is, that it won't create a new ticket if the subject contains "RE:"

I will be grateful for any help.

Thanks in advance and have a nice day,
Simon
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: E-mail piping: Reply will create new ticket everytime

Post by Klemen »

The code you mention will simply discard (ignore) any email with a subject starting with "RE:"

Instead, see my response here:
viewtopic.php?f=13&t=6373
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Sweritasa
Posts: 2
Joined: Mon Mar 11, 2019 3:16 pm

Re: E-mail piping: Reply will create new ticket everytime

Post by Sweritasa »

Thank you for answering, I'm really grateful for your help and sorry for late response.

As I understand this will only work for the person who first sent the email and from which ticket was created not if someone else is replying.

Problem is that the user sends an email message and includes multiple people in it so anyone can reply and that's when new tickets are creating.

So there is no way to make this work?

kind regards,
Simon
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: E-mail piping: Reply will create new ticket everytime

Post by Klemen »

If you delete the code mentioned in the topic I linked to in my previous reply, Hesk will not check if email address matches so a reply should be added from anyone - provided the tracking ID is still in the email subject.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply