[rt-users] Attachment Headers - Plain text vs HTML email

Scott Golby sgolby at freshdirect.com
Fri Mar 23 18:24:40 EDT 2007


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

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

Plain Text :
[Fri Mar 23 21:54:09 2007] [debug]: *** Header Info Subject: Test #17
Plain
Date: Fri, 23 Mar 2007 17:53:54 -0400
To: <rt-hr-requests-benefits at nyc1nmop02.nyc1.freshdirect.com>
From: "Scott Golby" <sgolby at freshdirect.com>
(/opt/rt3/lib/RT/Action/ExtractCustomFieldValues.pm:67)

HTML Email :
 [Fri Mar 23 21:52:52 2007] [debug]: *** Header Info
(/opt/rt3/lib/RT/Action/ExtractCustomFieldValues.pm:67)


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
(/opt/rt3/lib/RT/Action/ExtractCustomFieldValues.pm:67)


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 ?

Thanks,
Scott





More information about the rt-users mailing list