Ben,

 

Always convert HTML --> Plain Text on Submit and then you won't have to
worry about parsing HTML. There are many HTML --> Plain Text 3rd party
tools out there that you can use. Using API calls, you can feed the HTML
to these tools using Run Process action and save the result back to
Plain Text field for the same record using EmailID/Unique ID.

 

Hope this helps,

 

Neel Gautam 

Accenture - Chicago Delivery Centre

 

Core Values:    

Stewardship

*

Best People

*

Client Value Creation

*

One Global Network

*

Respect for the Individual

*

Integrity

 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Ben Cantatore
Sent: Thursday, February 21, 2008 11:29 AM
To: [email protected]
Subject: Parsing HTML Inbound Emails

 

** 
Hi all, 

I have ITSM 7.0.2 patch 3 running on ARServer 7.0.01 patch 3 on a
Linux/Oracle environment.  I've written custom code to take inbound
emails and based on the subject line push them to the worklog of
whatever ticket needs to be updated.  This all works fine and has been
in production since we went live.   Up until now the majority of updates
has come from our Lotus Notes clients.  We added a new group of users
that are using Inotes that causes the email to come in HTML format.  I
can easily amend my code to push over the HTML field rather than the
plain text bases on whichever is not null, the problem is that the HTML
pushes over like this: 

<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"
size=2><DIV><BR><DIV>test again<BR><DIV><BR></DIV><FONT
color=#990099>-----Remedy &lt;[EMAIL PROTECTED]&gt; wrote:
-----<BR><BR></FONT><blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT:
5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT:
0px">To: [EMAIL PROTECTED]<BR>From: Remedy
&lt;[EMAIL PROTECTED]&gt;<BR>Date: 02/21/2008 03:03PM<BR>Subject:
INC000000152336<BR><BR><FONT face="Default Monospace,Courier
New,Courier,monospace" size=2>Test email<BR><BR>Email Attachment :
<BR><BR></FONT></blockquote><br></DIV></DIV></FONT> 

Anyone have any suggestions of how to best parse out just the text? 

TIA 

Ben Cantatore
Remedy Administrator
Avon
(914) 935-2946 __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the
Answers Are" html___



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to