Open

#0721 How are emails parsed for new tickets and followups?  

I am not sure how the issuetracker emails are parsed so that an email can be identified as either a new ticket or a followup on an existing one.

I see the ticket ID in the subject of sent messages. Myself and others frequently reply to tickets via email for a quick response, then follow up with more detail on the website. I usually delete the contents of the previous email when I reply to a ticket, so there isn't a ton of duplication. I usually instruct the client to do the same, so the threads aren't crazy long. Most of our clients create and respond to tickets via email, so this is kind of critical for us.

But when I send an email with only the subject containing the ticket ID it sees it as a new ticket, so it is not using the subject to determine if it is new or a reply.

Is there a way to make the parser identify the subject with the ticket id format? Or is there something we can specify in the body, so that we can instruct the users to include it in the replies. Most other mail enabled helpdesk systems only need to see something like "Ticket ID:xxx" in the subject to know it is an update not a new ticket. Ideally, it would be really helpful if a user could reply to a send to a friend email notification to reply.

Submitted by: <jptechnical>
23-Mar 2008
3 months and 13 days old
Sections:User functions
Type:usability
Urgency:low
 
Added Issue followup   -   <Peter Bengtsson> permanent link

It's been a while since I worked on this. Allow me to explain how it distinguished between replies and new emails. Match on any of these:

  1. The header ID and if it refers to an existing issue.
  2. The URL of the issuetracker somewhere in the body. If so...
    1. It looks for a mentioned issue number that exists

That's the primary tests. Then it gets more detailed. If any of these match, it's a reply rather than a new issue:

  1. The configured signature is in the body
  2. It says "<Name of Tracker>: new issue" somewhere in the subject line
  3. It says "<Name of Tracker>" in the subject line and ...:
    1. It also matches a mentioned Issue Id and/or Title in the subject line
  4. The body contains the line "Thank you for submitting this issue via email." (this is my least favorite)

Basically, there's no immediate way to "fake" a non-reply into appearing as a issue followup. The best solution for you would be to write a monkey patch or something like that to extend this functionality. Sadly the function is quite big that does these checks and it's private so you'd have to get your best editor out to do it.

27-Mar 2008
 
Name:
Email:
Spambot prevention:number?number?number?number? enter these numbers
File attachment:
File attachment:
Hide again hide file attachments
(<jptechnical>, <Peter Bengtsson>)
Tell a Friend [with more options]

Subscription to changes

 
 

Recent issues