[Xymon] Untidy e-Mails
Jeremy Laidman
jlaidman at rebel-it.com.au
Fri Oct 25 02:30:47 CEST 2013
+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 <Nick at pettefar.com> 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 <mburger at bubbanfriends.org> 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 <Alan.FORD at stanwell.com> 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
> >>> _______________________________________________
> >>> Xymon mailing list
> >>> Xymon at xymon.com
> >>> http://lists.xymon.com/mailman/listinfo/xymon
> >>>
> >>> This email is to be read subject to the email disclaimer located at
> >>> http://www.stanwell.com/email-disclaimer.aspx
> >> _______________________________________________
> >> Xymon mailing list
> >> Xymon at xymon.com
> >> http://lists.xymon.com/mailman/listinfo/xymon
> >>
> >
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20131025/97389ed9/attachment.html>
More information about the Xymon
mailing list