[rt-users] How do I get headers from Email created tickets ?

Scott Golby sgolby at freshdirect.com
Wed Mar 28 13:38:01 EDT 2007


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 created    
Subject: Test 204 
Date: Wed, 28 Mar 2007 12:16:51 -0400 
To: <rt-hr-requests at nyc1nmop02.nyc1.freshdirect.com> 
From: "Scott Golby" <sgolby at 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





More information about the rt-users mailing list