[Logwatch-Devel] Patch for logwatch to have HTML report or HTML embedded email

Laurent.Dufour at havasit.com Laurent.Dufour at havasit.com
Fri Aug 6 09:51:00 MST 2004






Hi Guys,

As I have seen a few days ago that you asked for logwatch to bring HTML.
Here is what i have done so far,

I started from logwatch 5.2.2 then :

I patched it with the different patch from Mike (zz-fortune,zz-disk_space,
and the take2 patch)

Pavel asked for an HTML report like the one in Calamaris, so I tried to see
how calamaris handle it.

I took some of the code of calamaris that produces the HTML (It's almost
all the new sub out_something...)

I also looked at epylog and find some cool ideas too.

And then I coded...

Now you have a new option ( --output) with 4 possible parameters (html,
html-embed, mail, and unformatted)
By default it's unformatted, you will then have your usual report via mail
or on the screen with the --print option set

If you set --output to html you will have an HTML report as an attachment
in your mail
If you set --output to html-embed you will have an embedded HTML report
within an email with the mime settings already made , logwtach will send it
using sendmail instead of the regular mailer.

If you set --output to mail you will have an usual text report , but as an
attachment in your mail.


I also needed to change some stuff in zz-fortune and zz-disk_space

I hope you will like it.
(See attached file: patch-for-logwatch-with-html.tar.gz)
Still to do : fix bug (always ;-) , possibility to have skin  for the
report, etc....

I also mentionned a copyritght to calamaris at the bottom of the HTML
report.

Well that's it for now.

bye









----------------------------------------------------------------------------------------

Laurent DUFOUR - HAVAS IT
Vice Chief Technical Officer - Directeur Technique Adjoint
2 Allée de Longchamp - 92281 - Suresnes - France
tel: +33 (0)158478830 - fax: +33 (0)1 58478815
mailto:laurent.dufour at havas.com
http://www.havas.com
----------------------------------------------------------------------------------------

Ce message et, le cas échéant, les pièces jointes sont strictement
confidentiels et destinés à l'usage exclusif de leur destinataire. Il est
interdit à toute personne autre que leur destinataire de les lire, copier,
dupliquer et/ou communiquer à tout tiers quelconque. Si vous recevez ce
message par erreur, merci de le détruire et d'en aviser immédiatement
l'expéditeur par e-mail.

This message and any attachment are confidential and transmitted for the
exclusive use of the intended recipient. It is prohibited for anyone other
than the recipient to read, copy, duplicate and/or disclose the content to
any third-person. Should you receive this message by mistake, please delete
it and contact the sender by return e-mail.

Este mensaje y, cuando proceda, los documentos adjuntos son estrictamente
confidenciales y destinados a el uso exclusivo de su destinatario. Está
prohibido a toda persona otro que su destinatario de leerlos, copiar,
duplicar y/o comunicar a todo tercero cualquiera. Si recibe este mensaje
por error, gracias de destruirlo y de informar inmediatamente el remitente
por correo electrónico.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?ISO-8859-1?Q?patch-for-logwatch-with-html=2Etar=2Egz?=
Type: application/octet-stream
Size: 6660 bytes
Desc: not available
Url : http://list.kaybee.org/pipermail/logwatch-devel/attachments/20040806/f0da7ef2/ISO-8859-1Qpatch-for-logwatch-with-html2Etar2Egz-0001.obj


More information about the Logwatch-Devel mailing list