Fix ticket matching for emails.