Searching for tickets with a given messageid?

Is it currently possible to search from the web interface for tickets
with a message with a given Messageid?

I tried this naive query, but it didn’t work:

messageid = ‘E1CPe0q-0004MU-05@saruman.uio.no

We want to use this to be able to detect if a given email already has
been submitted to RT or not, but am unable to find a sensible way to
search for it.

Petter Reinholdtsen wrote:

Is it currently possible to search from the web interface for tickets
with a message with a given Messageid?

I tried this naive query, but it didn’t work:

messageid = ‘E1CPe0q-0004MU-05@saruman.uio.no

We want to use this to be able to detect if a given email already has
been submitted to RT or not, but am unable to find a sensible way to
search for it.

It looks to me like that’s currently not possible. You can see the
searchable field names in Tickets_Overlay.pm.

I can think of a possible workaround, but it would definitely be a
kludge: Create a custom field for the message ids and a scrip that will
copy (or add) the real message id from the transaction into the custom
field. Then you can search that field for the message id.

The proper fix would of course be to make headers searchable. I’m pretty
sure a patch to do that would be accepted :wink:

Rolf.