Xymon Mailing List Archive search

Untidy e-Mails

list Jeremy Laidman
Fri, 25 Oct 2013 11:30:47 +1100
Message-Id: <user-c420288e7d6c@xymon.invalid>

+1 on Outlook removing "extra line breaks" trying to be "helpful".  But I
wouldn't expect this to actually join lines together.

First of all, check if your alert config has FORMAT=PLAIN or FORMAT=TEXT.
 If one, try the other.

You can replace the mail program to insert newlines, by doing something
like the following:

MAILC="/usr/bin/sed 's/$/\r/' | mail"

Another option is to armour your message using MIME, base64 or UU-encoding.
Not sure how though. The problem is that most methods of doing this require
adjustments to the headers, and cannot be done purely by adjustments in the
body. You can do something like this:

MAILC="uuencode message.txt | mail"

This will convert the messages into a form that Outlook sees as an encoded
attachment. The main messages is blank, but the attachment is
"messages.txt" that can be clicked on to view. As the attachment is
uuencoded, all EOL characters are preserved. To get fancy and all
"user-friendly":

MAILC="( printf 'Xymon status message attached.\n\n'; uuencode
messages.txt; ) | mail"

Perhaps you could take a look at the email headers and see of a
content-type is being set? You might be able to override that somehow in
your MAILC config. You can view the email headers in Outlook by
right-clicking on the message (in the message list) and selecting "Message
Options".

J


On 24 October 2013 07:21, Nick Pettefar <user-2027539dd102@xymon.invalid> wrote:
Thanks.  OK, I;ll give it a go tomorrow at work - I don't recall
seeing that message though.

Regards,

Nick Pettefar


On 23 October 2013 21:00, Mike Burger <user-cc5c6e80f4c5@xymon.invalid> wrote:
If it were running on a Windows system, it might insert CR/LFs...if it's
running on a *nix system, probably not.

That having been said, you may notice in Outlook that it says something
like "Extra line breaks in this message were removed." in a blue line
below the From line and the Sent line.

Click on that, and it provides a popup that reads "Restore line
breaks"...click on that popup and voila...you get your separate lines.

--
Mike Burger
http://www.bubbanfriends.org

"It's always suicide-mission this, save-the-planet that. No one ever just
stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1

We just use crummy Outlook.  It's set to text only.

Can the e-mail generator of Xymon put a CR/LF in front of each colour?
 That would improve things enormously.

Regards,

Nick Pettefar


On 22 October 2013 23:49, Ford, Alan <user-eb925835b8b9@xymon.invalid> wrote:
Hi,
Can your email readers handle HTML (eg most smartphones)
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Nick
Pettefar
Sent: Wednesday, 23 October 2013 2:14 AM
To: xymon
Subject: [Xymon] Untidy e-Mails

Hi, we have various alert e-mails which look something like this:

yellow Tue Oct 22 17:05:54 IST 2013 - Ports NOT ok &green PUCA (found
2,
req. 2 or more) &green ITouch (found 0, req. none) &green Ericsson
(found 2, req. 2 or more) &green TMI (found 2, req. 2 or more) &green
Revenue (found 2, req. 2 or more) &green OpenSky (found 1, req. 1 or
more) &green OpenMarket (found 1, req. 1 or more) &green XIAM (found 1,
req. 1 or more) &green Zamano (found 2, req. 2 or more) &green Tango
(found 0, req. none) &green Opera (found 0, req. none) &green BT (found
0, req. none) &yellow Modeva (found 0, req. 1 or more) &green Gemalto
(found 2, req. none) &green Biogiorno (found 0, req. none) &green
Phonovation (found 3, req. 2 or more) &green Phonovation1 (found 1,
req.
1 or more) &green Conductor_acnsvr1 (found 7, req. 1 or
more) &green Conductor_aaxsvr1 (found 8, req. 1 or more)

Is there a way to tidy them up so that the individual coloured alerts
can easily be discerned?

Regards,

Nick Pettefar


This email is to be read subject to the email disclaimer located at
http://www.stanwell.com/email-disclaimer.aspx