Attachment Headers - Plain text vs HTML email

Hi Everyone,

I’m working with Dirk Pape’s ExtractCustomFieldValues and I noticed when
I send in a HTML Email from Outlook it doesn’t work, but if I send a
Plain Text Email it does.

This made no sense as the To: line I wish to work with from the Header
is a) in Plain Text to begin with b) RT has always found the info fine
before and added it to the Ticket details (the Subject, Date, To, From
you see on every Email created ticket in standard RT). Using RT v3.6.1.

So I did a little digging and added some debug to Dirk’s script “show me
the headers”

Debug Attempt #1

$OUTPUT = $FirstAttachment->NiceHeaders;
$RT::Logger->debug("*** Header Info $OUTPUT");

Plain Text :
[Fri Mar 23 21:54:09 2007] [debug]: *** Header Info Subject: Test #17
PlainDate: Fri, 23 Mar 2007 17:53:54 -0400
From: “Scott Golby”

HTML Email :
[Fri Mar 23 21:52:52 2007] [debug]: *** Header Info

Errr, where did the header stuff go ?

I tried the ->Header; option and get this.

[Fri Mar 23 22:13:42 2007] [debug]: *** Header Info content-type:
text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii

So that attachment appears to be the plain text version of the Email,
its just missing the Headers ?

Anyone seen this before ? and/or found a fix ?