- Edited
So I found that class.thread.php lookupByEmailHeaders() will find threads based on email parameters. What I would like is some function that would find an open ticked with the same email address, and append the new ticket to the old one. What I can't find a something already written to look up a ticked by email. Can someone point me in the correct direction? I can get the user this way:$user = User:(array('emails__address' => $mailinfo)));but then I have to get the tickets, but all I can find is a "get user ID" from an already selected ticket, which is not what I want. $ticket->getUserId()Do I have to write a custom function in the ticket class? I didn't find anything in the ticket or the user classes.Thanks for any help you can provide.