Page 1 of 1

3.1.0 - %%ID%% in email subject

Posted: Mon Apr 13, 2020 11:24 am
by rebeloda
Hi.

In a new fresh installation of Hesk 3.1.0 the email tag %%ID%% prints sequential ticket ID appears ok in the email body but not in the subject where it shows like [#%%ID%%]
The language filles for the EMAIL SUBJECTS were updated with the %%ID%% and have already tried removing the brackets and the # but it does not change.
Anything else that i need to change?

Rgds
Rebelo

Re: 3.1.0 - %%ID%% in email subject

Posted: Mon Apr 13, 2020 11:49 am
by Klemen
%%ID%% was never supported in email subjects, only %%TRACK_ID%% for the unique tracking code.

You will need to manually add %%ID%% if you need it. In /inc/email_functions.inc.php inside the hesk_getEmailSubject function you will need to add something like $msg = str_replace('%%ID%%', $ticket['id'], $msg); before the last return $msg; in this function.

Re: 3.1.0 - %%ID%% in email subject

Posted: Mon Apr 13, 2020 2:21 pm
by rebeloda
Tks Klemen.

Made the addition in /inc/email_functions.inc.php and it works.
The setback is when someone answer the ticket from the email program it creates a brand new ticket.
And i made sure the sender email address is the same as the original ticket.
Just leave it, will change it to %%TRACK_ID%% again.

Keep safe
Rebelo

Re: 3.1.0 - %%ID%% in email subject

Posted: Mon Apr 13, 2020 4:03 pm
by Klemen
For email replies to work the %%TRACK_ID%% must be used.

If Hesk used simple sequential IDs it would be easy to add false replies.