change subject style-text

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
xep22
Posts: 32
Joined: Fri Jan 28, 2022 10:07 pm

change subject style-text

Post by xep22 »

hi,

I want to change the subject of emails in the text file:

Code: Select all

$hesklang['new_reply_by_staff']='[#%%TRACK_ID%%] New answer: %%SUBJECT%%';
to something like:

Code: Select all

$hesklang['new_reply_by_staff']='[#XX-Support %%TRACK_ID%%] New answer: %%SUBJECT%%';
problem is, with this change, if the customer answer to a email, he will create a new ticket instead of answer to the ticket. looks like HESK search for "[#%%TRACK_ID%%]" in the subject to determine if its a answer or new ticket.

Is is possible to change the subject style ? how ?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: change subject style-text

Post by Klemen »

Hesk indeed requires [#%%TRACK_ID%%] in the subject to detect the response.

If you want to change that, you will need to adjust regex search in hesk_email2ticket function inside /inc/pipe_fiunctions.inc.php (consult a PHP developer if not sure how).
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
xep22
Posts: 32
Joined: Fri Jan 28, 2022 10:07 pm

Re: change subject style-text

Post by xep22 »

can someone help me with this ? should bei easy... this works but I need a space between my text and ticket ID.

Code: Select all

if ( preg_match('/\[#XX-Support([A-Z0-9]{3}\-[A-Z0-9]{3}\-[A-Z0-9]{4})\]/', str_replace(' ', '', $tmpvar['subject']), $matches) )
Post Reply