PATCH: optional limiting of content searches to inline content only

Here’s a patch to 3.4.4 that adds a new RT config variable,

$InlineContentQueriesOnly: if this is set to a non-undef value,

searches of ticket content (as in the Query Builder) will not search

ticket attachments with filenames. The default behavior is for

content searches to search attached files in addition to in-line

ticket content, which can be very slow for databases with many large

attached files and is often not what users expect to happen, anyway.

The corresponding change to lib/RT/ affects the
_TransLimit sub.

-Kevin Murphy

rt_content_query.patch (2.62 KB)