Tickets created from email via POP

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
thecaptainjs
Posts: 2
Joined: Wed Jan 23, 2013 5:02 pm

Tickets created from email via POP

Post by thecaptainjs »

From my testing, it seems that replies will not always add to the existing ticket.
if I created the ticket and I reply it will be added to the existing ticket, but if anyone else replies to that email it will not add it to the ticket, it will create a new ticket.
Any reason for this?
is this intentional behavior?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Tickets created from email via POP

Post by Klemen »

To make sure the email is added as a reply, the email subject needs to contain ticket tracking ID in the [#ID] format, for example: "Re: [#ABC-DEF-GHIJ] Ticket subject"

This is the default HESK format for email subjects. Without the tracking ID HESK does not know that this is a reply so a new ticket is generated instead.
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
thecaptainjs
Posts: 2
Joined: Wed Jan 23, 2013 5:02 pm

Re: Tickets created from email via POP

Post by thecaptainjs »

Absolutely, in my tests every reply had the full ticket in this format: [#XXX-XXX-XXXX]
However only the replies from the email address that created the ticket were added to the existing ticket. all others created a new ticket.
Looking at the code, this appears to be where its matching the address.

Code: Select all

	        // Do email addresses match?
	        if ( strpos( strtolower($ticket['email']), strtolower($tmpvar['email']) ) === false )
	        {
	        	$tmpvar['trackid'] = '';
	        }
If I commented out this, i am guessing it would then work?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Tickets created from email via POP

Post by Klemen »

Yes, that should skip the matching email check.
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