How do I get headers from Email created tickets?

Hi Everyone,

Does anyone know how to get the headers from Email created tickets ?

When any ticket is created by Emailing into RT we see a header nicely
presented at the start of the ticket, something like this.

Wed Mar 28 12:17:08 2007 sgolby - Ticket createdSubject: Test 204
Date: Wed, 28 Mar 2007 12:16:51 -0400
To: rt-hr-requests@nyc1nmop02.nyc1.freshdirect.com
From: “Scott Golby” sgolby@freshdirect.com

I need to extract the To: to use it with classifying the requests.

If I use {$Transaction->ContentObj->Headers} on a Plain Text email I get
the To: in the list of stuff recorded. If I do it on a HTML Email
(which is 99% of what we get) I get just 3 lines :-

Header : content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii

The To: is obviously in there somewhere, almost every RT Ticket displays
it as most are created via Email here. So, how do I get it out at
Ticket Create time ?

Thanks,
Scott