Since the MessageId is stored in a field in the Attachments table, I
assume that someone thought it’d be useful to be able to search on that
field. However, I don’t see any API function that allows us to look up
an attachment by messageid, or a ticket by an associated attachment’s
What’s the easiest way to go about introducing such a function? I
presume I’d create a “Tickets_Local.pm” file and create the appropriate
function. Is there an existing function that can perform this query?