Page 1 of 1

Subject lenght problem

Posted: Wed Dec 11, 2024 2:34 pm
by piktukas
Script URL:
Version of script: 3.5.1
Hosting company: self hosted
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello,

almost all responses to sent replys are created as new tickets. I see a problem with the 70 character subject length. The system cuts off the trackid and create it as a new request for responses. How could we make the length of the subject 255 (the subject field in the database is 255 long)

I tired change lenght in new_ticket.php but no success.

OR

Maybe we have solution to identify reply with trackid in message body?

Re: Subject lenght problem

Posted: Wed Dec 11, 2024 3:22 pm
by piktukas
Changed 1,70 to 1,255 in
hesk\inc\pipe_functions.inc.php

line "$tmpvar['subject'] = hesk_input($tmpvar['subject'],'','',1,70) or $tmpvar['subject'] = $hesklang['pem'];"

and problem solved.

Re: Subject lenght problem

Posted: Thu Dec 12, 2024 8:57 am
by Cegri
"almost all responses to sent replys are created as new tickets"

This was also bothering me. It ussually happens when somebody fills a short-form email alias on the form, and later replies from a different e-mail adress.

Hesk checks that the email sender is already registered with the ticket. If not, it starts a new ticket.

I disabled the following lines. The ticket ID is kept, even if the email is from a total stranger. (We are a small company. You might want to consider security issues.)

hesk\inc\pipe_functions.inc.php, around line 178;

Code: Select all

if (!in_array($tmpvar['email'], $customer_emails))
{
	$tmpvar['trackid'] = '';
}

Re: Subject lenght problem

Posted: Thu Dec 12, 2024 6:31 pm
by Klemen
Cegri is correct; to get counted as a reply, Hesk checks both the tracking ID and the sender. If the sender doesn't match, a new ticket will be created.

The solution posted should fix it.