Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

E-Mail Ticket Parsing and Decoding

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


john at iastate

Jan 19, 2010, 7:35 AM

Post #1 of 1 (440 views)
Permalink
E-Mail Ticket Parsing and Decoding

Hi all,

As my first real RT project I need to write a Scrip to
parse values out of an email at ticket creation time
and set some Custom Fields. Because the data is
structured (xml) it looks like "ExtractCustomFieldValues"
probably isn't going to be up to the task.

It looks like getting the content/attachments in the Scrip
is easy enough:

my $xact = $self->TransactionObj;
my $tkt = $self->TicketObj;
my $cont = $xact->Content;
my $atts = $tkt->attachments;
my $iter = $attachments->get_iterator;
while (my $att = &$iter) {
my $acont = $att->content;
...
}
...

So my question is: How much decoding has been done on
the content by the time I fetch it? For example,
do I need to worry about stuff like mail sent with:
Content-Transfer-Encoding: quoted-printable
or
Content-Transfer-Encoding: base64
or has that already been taken care of?

Thanks,
John



-------------------------------------------------------------------------------
John Hascall, john [at] iastate
Team Lead, NIADS (Network Infrastructure, Authentication & Directory Services)
IT Services, The Iowa State University of Science and Technology
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical

2010 RT Training Sessions!
San Francisco, CA, USA - Feb 22 & 23
Dublin, Ireland - Mar 15 & 16
Boston, MA, USA - April 5 & 6
Washington DC, USA - Oct 25 & 26

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.