Thank you for your answer.It's osTicket v1.10.How does osTicket determine if an email belongs to an existing ticket?Yes, this is what i meant, sorry for my weak English. This function works good, but i want to change the method.The one that parses the email or the one that collects email?I looking for this function that you wrote in More in depth section.