Xymon Mailing List Archive search

HTML Format removal form email

3 messages in this thread

list Ian Norfolk · Fri, 18 May 2012 11:01:02 +0000 ·

All,  I have formated the messages from my devmon tests as html tables, which looks very nice on the Xymon web pages, but not so good when emailed out in alerts. Is there any trick to getting the html tags replaced for tabs and cr so it looks ok on email? I guess a bit of a script with some regex transforms would do it. Thanks, ian.
list David Baldwin · Mon, 21 May 2012 09:44:44 +1000 ·
Ian,
quoted from Ian Norfolk
All,
 
 
I have formated the messages from my devmon tests as html tables,
which looks very nice on the Xymon web pages, but not so good when
emailed out in alerts. Is there any trick to getting the html tags
replaced for tabs and cr so it looks ok on email?
 
I guess a bit of a script with some regex transforms would do it.
You could always send HTML e-mail - try
http://xymonton.org/alerts:html_mail1.2

There may be some slight compatibility issues with latest Xymon
(environment variable names, etc) - I have some updates that I have yet
to merge back.

Thanks, David.

-- 
David Baldwin - Senior Systems Administrator (Datacentres + Networks)
Information and Communication Technology Services
Australian Sports Commission          http://ausport.gov.au
Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616
user-cbbf693f2c89@xymon.invalid          Leverrier Street Bruce ACT 2617


Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au

This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender.
list Stef Coene · Mon, 21 May 2012 08:27:34 +0200 ·
quoted from Ian Norfolk
On Friday 18 May 2012 11:01:02 ian norfolk wrote:
All,  I have formated the messages from my devmon tests as html tables,
which looks very nice on the Xymon web pages, but not so good when emailed
out in alerts. Is there any trick to getting the html tags replaced for
tabs and cr so it looks ok on email? I guess a bit of a script with some
regex transforms would do it.
We use the command links for that.  Save the content in /tmp/TEMP1 and use 
links to convert from html to tekst:

links -dump /tmp/TEMP1 > /tmp/TEMP2


Stef