Custom headers in outbound mail

We’d like to add another header in outbound emails from RT to indicate the name of the queue. eg X-RT-Queue.

Is there any way to do this other than modifying the source (making upgrading a mess), or modifying each and every one of the templates?

Thanks

So that you’re not modifying core code, you can create a local overlay of the SendEmail.pm file and just overlay one sub routine from that file.

If you create the file:
/opt/rt5/local/lib/RT/Action/SendEmail_Vendor.pm

You can then add the package RT::Action::SendEmail; and overlay an existing subroutine that gets called like SetRTSpecialHeaders and add your code to include the custom header