Michele, if you upgrade to RT 4.0.9 you can use the X-RT-Interface
header. The potential values are Email, Web, Mobile, REST, and API.
Craig,
> Another option would be to modify RT::Interface::Email.pm and
> RT::Interface::Web.pm to insert the desired header into the generated
> message (in the case of Web.pm) or parsed email (in the case of
> Email.pm). You could probably make a convincing case for such a patch to
> be accepted into RT proper...
This is exactly what we've done:
tom@whaam rt (4.0-trunk=) $ git ack 'X-RT-Interface'
lib/RT/Interface/Email.pm
1567: $head->replace('X-RT-Interface' => 'Email');
lib/RT/Interface/Web.pm
2077: "X-RT-Interface" => $args{Interface},
2121: $Message->head->delete('X-RT-Interface');
lib/RT/Ticket.pm
2243: $args{'MIMEObj'}->head->replace('X-RT-Interface' => 'API')
2244: unless $args{'MIMEObj'}->head->get('X-RT-Interface');
share/html/REST/1.0/Forms/ticket/comment
95: 'X-RT-Interface' => 'REST',
share/html/REST/1.0/Forms/ticket/default
192: 'X-RT-Interface' => 'REST',
share/html/REST/1.0/ticket/comment
112: 'X-RT-Interface' => 'REST',